Get correct type name

This commit is contained in:
Ilan Steemers
2020-06-28 20:24:22 +02:00
parent a57f7e3f89
commit a02ded0ade

View File

@@ -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,