test(memory): use dynamic recorded commit in freshness test

This commit is contained in:
ochenstarik-ui 2026-08-31 18:23:14 +07:00
parent 5c3565120e
commit a5f5e6b015

View file

@ -25,6 +25,7 @@ def test_check_memory_freshness_real_repo():
canonical_memory = Path("/srv/projects/AI-Memory/01_PROJECTS/hermes-hub/CURRENT_STATE.md")
if canonical_memory.exists():
recorded_commit = extract_recorded_commit(canonical_memory.read_text(encoding="utf-8"))
is_fresh, summary = check_memory_freshness(
repo_path=REPO_ROOT,
memory_file=canonical_memory,
@ -32,7 +33,7 @@ def test_check_memory_freshness_real_repo():
)
assert is_fresh is True
assert "FRESH" in summary
assert "80aab00" in summary
assert recorded_commit in summary
def test_check_memory_freshness_missing_file_strict_vs_non_strict(tmp_path):