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/%22https:/validator.w3.org/%7B%7Byoutube_prefix%7D%7D%7B%7Bresult.id%7D%7D?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)