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%7B%20web_path%20%7D%7D/decks/%7B%7Bprefix%7D%7D/static/bar%20baz.html?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)