Explorar o código

tests passing

Ask Solem %!s(int64=12) %!d(string=hai) anos
pai
achega
87968d99bd
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      celery/tests/app/test_beat.py

+ 1 - 0
celery/tests/app/test_beat.py

@@ -132,6 +132,7 @@ class mocked_schedule(schedule):
         self._is_due = is_due
         self._next_run_at = next_run_at
         self.run_every = timedelta(seconds=1)
+        self.nowfun = datetime.utcnow
 
     def is_due(self, last_run_at):
         return self._is_due, self._next_run_at