- state_db fixture: drop the HERMES_HOME setenv + sys.modules purge
(SessionDB takes an explicit path; tests/conftest.py already sandboxes
HERMES_HOME; the purge risks split-class identity for other modules
holding the old hermes_state reference) — matches the plain
tests/hermes_state/ sibling fixture pattern.
- probe guard asserts on the CALL ('has_archived_messages(') instead of a
local-variable name — a reintroduced probe under any rename now trips
it (mutation-checked: renamed-probe reintroduction fails the guard;
restored stack green).
- _archived_count uses the public get_messages(include_inactive=True)
instead of poking db._lock/_conn.
|
||
|---|---|---|
| .. | ||
| test_append_messages_batch.py | ||
| test_aux_usage_accounting.py | ||
| test_conversation_root.py | ||
| test_get_anchored_view.py | ||
| test_get_messages_around.py | ||
| test_live_db_isolation_guard.py | ||
| test_replace_messages_archive_siblings.py | ||
| test_resolve_resume_session_id.py | ||
| test_restore_alternation_repair.py | ||
| test_session_archiving.py | ||
| test_session_md_export.py | ||
| test_session_read_state.py | ||