Files
barsic/tests/test_persistent_memory.py

15 lines
531 B
Python

"""Regression coverage for configured global-memory location."""
from homeagent.memory.global_memory import configure_global_memory_path, get_global_memory
def test_configured_memory_path_is_used(tmp_path):
configured = tmp_path / "mounted-data" / "global_memory.json"
configure_global_memory_path(configured)
memory = get_global_memory()
memory.add_fact("configured path survives restart")
assert configured.exists()
assert "configured path survives restart" in configured.read_text(encoding="utf-8")