aboutsummaryrefslogtreecommitdiff
path: root/backend/tests/test_histplorer.py
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-10-20 15:31:05 +1100
committerTerry Truong <terry06890@gmail.com>2022-10-20 15:31:05 +1100
commit83366605d1bd43c245c4c110fadfd1a6fd05d3c2 (patch)
treea7d0352d2a4d4e14b8113dcfdf28d06a06af20d4 /backend/tests/test_histplorer.py
parentf09bfa345519f7d070ae9c7474ef8b4f91b22bae (diff)
Add gcal to client-side HistDates
Add YearDate and CalDate Restrict non-calendar HistDates to years before 4713 BC
Diffstat (limited to 'backend/tests/test_histplorer.py')
-rw-r--r--backend/tests/test_histplorer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/tests/test_histplorer.py b/backend/tests/test_histplorer.py
index 32f1404..6487977 100644
--- a/backend/tests/test_histplorer.py
+++ b/backend/tests/test_histplorer.py
@@ -77,7 +77,7 @@ class TestHandleReq(unittest.TestCase):
def test_events_req(self):
response = handleReq(self.dbFile, {'QUERY_STRING': 'type=events&range=-1999.2002-11-1&incl=3&limit=2'})
self.assertEqual(response, [
- Event(5, 'event five', HistDate(None, 2000), None, HistDate(None, 2001), None,
+ Event(5, 'event five', HistDate(True, 2000, 1, 1), None, HistDate(True, 2001, 1, 1), None,
'event', 50, 51),
Event(3, 'event three', HistDate(True, 1990, 10, 10), HistDate(True, 2000, 10, 10), None, None,
'discovery', 30, 0),