home
·
contact
·
privacy
projects
/
plomtask
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve InputsParser tests.
[plomtask]
/
tests
/
days.py
diff --git
a/tests/days.py
b/tests/days.py
index d34d7ba794e16476fd2f0c54fa28f39c5e77ea74..286f75815ef51e74ade9e15e96bdb85dc4218a4b 100644
(file)
--- a/
tests/days.py
+++ b/
tests/days.py
@@
-118,8
+118,8
@@
class TestsWithServer(TestCaseWithServer):
def test_do_POST_day(self) -> None:
"""Test POST /day."""
def test_do_POST_day(self) -> None:
"""Test POST /day."""
- form_data = {'day_comment': ''}
+ form_data = {'day_comment': ''
, 'make_type': 'full'
}
self.check_post(form_data, '/day', 400)
self.check_post(form_data, '/day?date=foo', 400)
self.check_post(form_data, '/day', 400)
self.check_post(form_data, '/day?date=foo', 400)
- self.check_post(form_data, '/day?date=2024-01-01', 302)
+ self.check_post(form_data, '/day?date=2024-01-01
&make_type=full
', 302)
self.check_post({'foo': ''}, '/day?date=2024-01-01', 400)
self.check_post({'foo': ''}, '/day?date=2024-01-01', 400)