moo.shell.tests.test_history

Functions

test_caps_at_limit()

Entries beyond cap drop oldest-first.

test_dedupes_consecutive_repeats()

Back-to-back identical entries are collapsed to a single entry.

test_non_consecutive_repeats_allowed()

Repeats separated by other entries are kept (only consecutive dedup).

test_scoped_per_user()

Separate user_pks do not share history.

test_skips_empty_and_whitespace()

Empty / whitespace-only strings are never persisted.

test_store_and_load_round_trip()

load_history_strings() yields stored entries newest-first.

test_ttl_applied()

store_string passes the configured ttl through to cache.set.