test(msteams): align stale-ref test with sidecar metadata

The PR stores ref freshness in the metadata sidecar, so the merged main test should assert updated_at there instead of in the refs payload.

Made-with: Cursor
This commit is contained in:
Xubin Ren
2026-04-27 07:30:17 +00:00
parent 3d75aedcac
commit 367a6db78c
+2 -1
View File
@@ -871,7 +871,8 @@ def test_save_refs_prunes_webchat_and_stale_refs(make_channel):
assert set(ch._conversation_refs) == {"teams-good"}
saved = json.loads(ch._refs_path.read_text(encoding="utf-8"))
assert set(saved) == {"teams-good"}
assert saved["teams-good"]["updated_at"] == pytest.approx(now)
saved_meta = json.loads(ch._refs_meta_path.read_text(encoding="utf-8"))
assert saved_meta["teams-good"]["updated_at"] == pytest.approx(now)
def test_msteams_default_config_includes_restart_notify_fields():