From 81fe9675e069e491963caee63b2d964f4afe196f Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Wed, 20 Mar 2024 02:39:02 +0100 Subject: [PATCH] Extend GET /day?date= test. --- tests/test_days.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_days.py b/tests/test_days.py index 04f667b..d0accbc 100644 --- a/tests/test_days.py +++ b/tests/test_days.py @@ -117,6 +117,8 @@ class TestsWithServer(TestsWithDB): conn = HTTPConnection(*self.httpd.server_address) conn.request('GET', '/day') self.assertEqual(conn.getresponse().status, 200) + conn.request('GET', '/day?date=3000-01-01') + self.assertEqual(conn.getresponse().status, 200) conn.request('GET', '/day?date=FOO') self.assertEqual(conn.getresponse().status, 400) -- 2.30.2