mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-03 00:48:12 +08:00
Get correct type name
This commit is contained in:
@@ -100,7 +100,7 @@ def test_scheduler(broker, monkeypatch):
|
|||||||
assert hasattr(cron_schedule, 'pk') is True
|
assert hasattr(cron_schedule, 'pk') is True
|
||||||
# All other types
|
# All other types
|
||||||
for t in Schedule.TYPE:
|
for t in Schedule.TYPE:
|
||||||
if t == Schedule.CRON:
|
if t[0] == Schedule.CRON:
|
||||||
continue
|
continue
|
||||||
schedule = create_schedule('django_q.tests.tasks.word_multiply',
|
schedule = create_schedule('django_q.tests.tasks.word_multiply',
|
||||||
2,
|
2,
|
||||||
|
|||||||
Reference in New Issue
Block a user