Skip to content

Commit 1cd3e41

Browse files
jackielengauvipy
authored andcommitted
Fix next id call in test_from_entry (#528)
* Fix next id call in test_from_entry * Fix PEP8
1 parent 521ee7b commit 1cd3e41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

djcelery/tests/test_schedulers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ def test_entry(self):
102102

103103
def test_from_entry(self):
104104
name = 'interval-vs-crontab'
105-
entry = {'task': 'djcelery.unittest.add{0}'.format(_next_id()),
105+
entry = {'task': 'djcelery.unittest.add{0}'.format(next(_ids)),
106106
'args': '[2, 2]',
107-
'schedule': timedelta(hours=24),}
107+
'schedule': timedelta(hours=24), }
108108
self.Entry.from_entry(name, **entry)
109109
schedule1 = PeriodicTask.objects.get(name=name).schedule
110110
self.assertIsInstance(schedule1, schedule)

0 commit comments

Comments
 (0)