File: 0001-Fixed-test-to-not-expire-relative-to-current-date.-A.patch

package info (click to toggle)
python-django-celery-beat 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 520 kB
  • sloc: python: 1,363; makefile: 323
file content (22 lines) | stat: -rw-r--r-- 893 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Daniel Devine <devine@ddevnet.net>
Date: Fri, 28 Jul 2017 13:18:51 +1000
Subject: Fixed test to not expire relative to current date. Added test to
 check both if a task is due in addition to not due.

---
 t/unit/test_schedulers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/unit/test_schedulers.py b/t/unit/test_schedulers.py
index d638477..8dd1862 100644
--- a/t/unit/test_schedulers.py
+++ b/t/unit/test_schedulers.py
@@ -464,7 +464,7 @@ class test_models(SchedulerCase):
 
         assert s.schedule is not None
         isdue, nextcheck = s.schedule.is_due(dt_lastrun)
-        assert isdue is False  # False means task isn't due, but keep checking.
+        assert isdue is False  # False means task is not due, but keep checking.
         assert (nextcheck > 0) and (isdue is False) or \
             (nextcheck == s.max_interval) and (isdue is True)