home · contact · privacy
Perform sensible redirects on POSTs.
[plomtask] / tests / conditions.py
index b6510a1afbf2b7435679573ad45fbd8a8ac5ff57..3b95de1f3fe7e89cc30a14f149983d14ad690962 100644 (file)
@@ -43,7 +43,7 @@ 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: