update tests for proper HTTP status codes
This commit is contained in:
@@ -49,8 +49,7 @@ class TestFlights:
|
||||
@pytest.mark.asyncio
|
||||
async def test_patch_unknown_flight(self, client):
|
||||
res = await client.patch(E.flight("FAKE"), json={"delay_minutes": 10})
|
||||
H.assert_status(res, 200)
|
||||
assert "error" in res.json()
|
||||
H.assert_status(res, 404)
|
||||
|
||||
|
||||
class TestCrew:
|
||||
|
||||
Reference in New Issue
Block a user