X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=tests%2Ftodos.py;h=0998c690494e60ae864e929e205c16549b4ebe9a;hb=0274be2e09f4b9c9cffa9e6737a8b128e0fab76d;hp=7f106bc560640967035986acc3e04028cc009def;hpb=244270eed71df45faf9554d0666b816be9876f77;p=plomtask
diff --git a/tests/todos.py b/tests/todos.py
index 7f106bc..0998c69 100644
--- a/tests/todos.py
+++ b/tests/todos.py
@@ -400,11 +400,12 @@ class TestsWithServer(TestCaseWithServer):
form_data = {'day_comment': '', 'new_todo': [1], 'make_type': 'full'}
self.check_post(form_data, '/day?date=2024-01-01&make_type=full', 302)
todo = Todo.by_date(self.db_conn, '2024-01-01')[0]
- form_data = {'day_comment': '', 'todo_id': [1], 'make_type': 'full'}
+ form_data = {'day_comment': '', 'todo_id': [1], 'make_type': 'full',
+ 'comment': [''], 'done': [], 'effort': ['']}
self.check_post(form_data, '/day?date=2024-01-01&make_type=full', 302)
self.assertEqual(todo.is_done, False)
form_data = {'day_comment': '', 'todo_id': [1], 'done': [1],
- 'make_type': 'full'}
+ 'make_type': 'full', 'comment': [''], 'effort': ['']}
self.check_post(form_data, '/day?date=2024-01-01&make_type=full', 302)
self.assertEqual(todo.is_done, True)
@@ -413,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)