X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=tests%2Fconditions.py;h=40d7c486fe7b05f2ed7f447e2cf58cd435546ebb;hb=96a63958d64e4847cd462d12b227ccb4fecd0d9e;hp=db6c745da7a0fd6c4b7afbe9ac740f45fbf2572e;hpb=3bf943fedc1e0e67a010dd9f1a5fb8791c390a75;p=plomtask diff --git a/tests/conditions.py b/tests/conditions.py index db6c745..40d7c48 100644 --- a/tests/conditions.py +++ b/tests/conditions.py @@ -70,8 +70,7 @@ class TestsWithServer(TestCaseWithServer): 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', 500) - self.check_get('/condition?id=FOO', 400) + form_data = {'title': 'foo', 'description': 'foo'} + self.check_post(form_data, '/condition', 302, '/condition?id=1') + self.check_get_defaults('/condition') self.check_get('/conditions', 200)