home
·
contact
·
privacy
projects
/
plomtask
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
508024e
)
Extend GET /day?date= test.
author
Christian Heller
<c.heller@plomlompom.de>
Wed, 20 Mar 2024 01:39:02 +0000
(
02:39
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Wed, 20 Mar 2024 01:39:02 +0000
(
02:39
+0100)
tests/test_days.py
patch
|
blob
|
history
diff --git
a/tests/test_days.py
b/tests/test_days.py
index 04f667bfb88dbbae58087399dde3aae1daf251a7..d0accbc0d778a429ba2e741061b0fc35c50712c6 100644
(file)
--- 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)