refresh_from_db is 1.8 only

This commit is contained in:
Ilan Steemers
2015-07-08 21:06:32 +02:00
parent 0a8196838a
commit 0413a2e65a
+1 -1
View File
@@ -41,7 +41,7 @@ def test_scheduler(r):
# store the results
monitor(result_queue)
assert result_queue.qsize() == 0
schedule.refresh_from_db()
schedule = Schedule.objects.get(pk=schedule.pk)
assert schedule.repeats == 0
assert schedule.last_run() is not None
assert schedule.success() is True