test(proxy): give the reconcile log tests a fresh guard whatever the module defines

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Tejas Chopra
2026-10-10 09:20:27 -07:00
co-authored by Claude Opus 5.5
parent 074561b1d5
commit d3834fea30
+3 -1
View File
@@ -161,7 +161,9 @@ def _capture_policy_logs(monkeypatch):
policy.logger.addHandler(handler)
old_level = policy.logger.level
policy.logger.setLevel(logging.DEBUG)
monkeypatch.setattr(policy, "_reconcile_warned", WarnOnce(32, "test reconcile types"))
monkeypatch.setattr(
policy, "_reconcile_warned", WarnOnce(32, "test reconcile types"), raising=False
)
monkeypatch.delenv("HEADROOM_DEBUG_DUMP", raising=False)
return policy, records, handler, old_level