(cls, tz=None)
| 15 | class FixedDateTime(datetime): |
| 16 | @classmethod |
| 17 | def now(cls, tz=None): |
| 18 | value = cls(2026, 5, 9, 10, 0, tzinfo=timezone.utc) |
| 19 | if tz is None: |
| 20 | return value.replace(tzinfo=None) |
| 21 | return value.astimezone(tz) |
| 22 | |
| 23 | |
| 24 | def test_scheduled_task_next_run_uses_schedule_timezone(monkeypatch): |
no test coverage detected