Model.__unicode__() has no effect

This commit is contained in:
alx-sdv
2020-10-05 12:30:11 +03:00
parent 7b4c357128
commit 28197dc4fa
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -100,7 +100,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'
assert cron_schedule.__str__() == 'django_q.tests.tasks.word_multiply'
with pytest.raises(ValidationError):
create_schedule('django_q.tests.tasks.word_multiply',
2,