update tests for proper HTTP status codes
This commit is contained in:
@@ -49,5 +49,4 @@ class TestActiveScenario:
|
||||
@pytest.mark.asyncio
|
||||
async def test_switch_invalid(self, client):
|
||||
res = await client.put(E.SCENARIO_ACTIVE, json={"scenario_id": "nonexistent"})
|
||||
H.assert_status(res, 200)
|
||||
assert "error" in res.json()
|
||||
H.assert_status(res, 400)
|
||||
|
||||
Reference in New Issue
Block a user