home · contact · privacy
Refactor request handler identifying items by ID param on GET.
[plomtask] / tests / todos.py
index 626b7440712e9f67ad75ffed17458b12fa1d9a7f..0998c690494e60ae864e929e205c16549b4ebe9a 100644 (file)
@@ -414,8 +414,8 @@ class TestsWithServer(TestCaseWithServer):
         self.post_process()
         form_data = {'day_comment': '', 'new_todo': 1, 'make_type': 'full'}
         self.check_post(form_data, '/day?date=2024-01-01&make_type=full', 302)
-        self.check_get('/todo', 400)
-        self.check_get('/todo?id=', 400)
+        self.check_get('/todo', 404)
+        self.check_get('/todo?id=', 404)
         self.check_get('/todo?id=foo', 400)
         self.check_get('/todo?id=0', 404)
         self.check_get('/todo?id=1', 200)