X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=tests%2Fconditions.py;h=3b95de1f3fe7e89cc30a14f149983d14ad690962;hb=e14580b4ee47363cad317e4ec1de91affe03d53a;hp=478124650bd7dd72d984920de105cab3dce033dd;hpb=34741b65438149b4e02f1e2bb4f8fdba5df5a667;p=plomtask
diff --git a/tests/conditions.py b/tests/conditions.py
index 4781246..3b95de1 100644
--- a/tests/conditions.py
+++ b/tests/conditions.py
@@ -43,13 +43,13 @@ class TestsWithServer(TestCaseWithServer):
def test_do_POST_condition(self) -> None:
"""Test POST /condition and its effect on the database."""
form_data = {'title': 'foo', 'description': 'foo'}
- self.check_post(form_data, '/condition', 302, '/')
+ self.check_post(form_data, '/condition', 302, '/condition?id=1')
self.assertEqual(1, len(Condition.all(self.db_conn)))
def test_do_GET(self) -> None:
"""Test /condition and /conditions response codes."""
self.check_get('/condition', 200)
self.check_get('/condition?id=', 200)
- self.check_get('/condition?id=0', 400)
+ self.check_get('/condition?id=0', 500)
self.check_get('/condition?id=FOO', 400)
self.check_get('/conditions', 200)