There was an error while loading. Please reload this page.
1 parent cf7f6b0 commit 5fa2c05Copy full SHA for 5fa2c05
1 file changed
tests/cli/scheduler/test_is_cron_task_now.py
@@ -75,3 +75,21 @@ def test_is_cron_task_now(
75
def test_is_cron_task_now_invalid_cron() -> None:
76
with pytest.raises(CronValueError):
77
is_cron_task_now("invalid cron", datetime.now())
78
+
79
80
+def test_is_cron_task_now_invalid_offset_string() -> None:
81
+ with pytest.raises(CronValueError):
82
+ is_cron_task_now(
83
+ cron_value="* * * * *",
84
+ now=datetime.now(timezone.utc),
85
+ offset="UTC+3",
86
+ )
87
88
89
+def test_is_cron_task_now_unknown_timezone_name() -> None:
90
91
92
93
94
+ offset="Europa/Madrid",
95
0 commit comments