MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / flaky_daily_push

Function flaky_daily_push

tests/test_scheduler.py:262–265  ·  view source on GitHub ↗
(role_name, user_id, chat_id)

Source from the content-addressed store, hash-verified

260 calls = {"count": 0}
261
262 def flaky_daily_push(role_name, user_id, chat_id):
263 calls["count"] += 1
264 if calls["count"] == 1:
265 raise RuntimeError("temporary failure")
266
267 monkeypatch.setattr(scheduler, "_trigger_daily_push", flaky_daily_push)
268 monkeypatch.setattr(scheduler, "_trigger_weekly_report", lambda *args, **kwargs: None)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected