test model unicode

This commit is contained in:
Ilan Steemers
2020-06-30 22:00:31 +02:00
parent b17fd24682
commit e6f82c5158
4 changed files with 13 additions and 10 deletions
+1
View File
@@ -99,6 +99,7 @@ def test_scheduler(broker, monkeypatch):
cron="0 22 * * 1-5")
assert hasattr(cron_schedule, 'pk') is True
assert cron_schedule.full_clean() is None
assert cron_schedule.__unicode__() == 'django_q.tests.tasks.word_multiply'
# All other types
for t in Schedule.TYPE:
if t[0] == Schedule.CRON: