From: Christian Heller Date: Wed, 20 Mar 2024 01:39:02 +0000 (+0100) Subject: Extend GET /day?date= test. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%22https:/validator.w3.org/ledger?a=commitdiff_plain;h=81fe9675e069e491963caee63b2d964f4afe196f;p=plomtask Extend GET /day?date= test. --- 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)