home
·
contact
·
privacy
projects
/
plomtask
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor request handler identifying items by ID param on GET.
[plomtask]
/
tests
/
todos.py
diff --git
a/tests/todos.py
b/tests/todos.py
index 626b7440712e9f67ad75ffed17458b12fa1d9a7f..0998c690494e60ae864e929e205c16549b4ebe9a 100644
(file)
--- a/
tests/todos.py
+++ b/
tests/todos.py
@@
-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.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', 40
0
)
- self.check_get('/todo?id=', 40
0
)
+ self.check_get('/todo', 40
4
)
+ self.check_get('/todo?id=', 40
4
)
self.check_get('/todo?id=foo', 400)
self.check_get('/todo?id=0', 404)
self.check_get('/todo?id=1', 200)
self.check_get('/todo?id=foo', 400)
self.check_get('/todo?id=0', 404)
self.check_get('/todo?id=1', 200)