mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-05 16:08:12 +08:00
Test cron validator
This commit is contained in:
@@ -98,6 +98,7 @@ def test_scheduler(broker, monkeypatch):
|
|||||||
schedule_type=Schedule.CRON,
|
schedule_type=Schedule.CRON,
|
||||||
cron="0 22 * * 1-5")
|
cron="0 22 * * 1-5")
|
||||||
assert hasattr(cron_schedule, 'pk') is True
|
assert hasattr(cron_schedule, 'pk') is True
|
||||||
|
assert cron_schedule.full_clean() is None
|
||||||
# All other types
|
# All other types
|
||||||
for t in Schedule.TYPE:
|
for t in Schedule.TYPE:
|
||||||
if t[0] == Schedule.CRON:
|
if t[0] == Schedule.CRON:
|
||||||
|
|||||||
Reference in New Issue
Block a user