mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-03 23:38:12 +08:00
Model.__unicode__() has no effect
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user