mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-07 05:55:27 +03:00
fix test
This commit is contained in:
parent
ccbe2fda9a
commit
5ddd824b49
@ -61,7 +61,9 @@ class TestDebugReplayAPI(BaseTestHttp):
|
|||||||
self.assertEqual(resp.status_code, 400)
|
self.assertEqual(resp.status_code, 400)
|
||||||
body = resp.json()
|
body = resp.json()
|
||||||
self.assertFalse(body["success"])
|
self.assertFalse(body["success"])
|
||||||
self.assertIn("missing", body["message"])
|
# Message is hard-coded so we don't echo exception text back to clients
|
||||||
|
# (CodeQL: information exposure through an exception).
|
||||||
|
self.assertEqual(body["message"], "Invalid debug replay parameters")
|
||||||
|
|
||||||
def test_start_returns_409_when_session_already_active(self):
|
def test_start_returns_409_when_session_already_active(self):
|
||||||
with patch(
|
with patch(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user