test(memory): use dynamic recorded commit in freshness test
This commit is contained in:
parent
5c3565120e
commit
a5f5e6b015
1 changed files with 2 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue