(role_name, user_id, chat_id)
| 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) |
nothing calls this directly
no outgoing calls
no test coverage detected