mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-18 06:57:53 +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
|
||||
# All other types
|
||||
for t in Schedule.TYPE:
|
||||
if t == Schedule.CRON:
|
||||
if t[0] == Schedule.CRON:
|
||||
continue
|
||||
schedule = create_schedule('django_q.tests.tasks.word_multiply',
|
||||
2,
|
||||
|
||||
Reference in New Issue
Block a user