tiandytdd
This commit is contained in:
1 parent
ddea6d0578
commit
5746fa10db
5 files changed
+122
-20
No files matched your search
@@ -51,6 +51,18 @@ class ApiRecoveryTests(unittest.TestCase):
|
||||
self.assertEqual(payload["scan"]["state"], "idle")
|
||||
wait_mock.assert_called_once_with()
|
||||
|
||||
def test_container_id_not_running_is_transient(self):
|
||||
result = completed(
|
||||
1,
|
||||
stderr=(
|
||||
"Error response from daemon: container "
|
||||
"181a3df5ec75c1ed7183528c758078fee72b5f23505e18dd25b46789a01efac2 "
|
||||
"is not running"
|
||||
),
|
||||
)
|
||||
|
||||
self.assertTrue(core.transient_api_failure(result))
|
||||
|
||||
def test_move_not_reached_error_is_explained_for_operator(self):
|
||||
result = completed(
|
||||
22,
|
||||
@@ -230,7 +242,7 @@ class InteractiveWizardTests(unittest.TestCase):
|
||||
"POST", "/api/v1/patrol/stop",
|
||||
{"source": "scan_calibrator"}, timeout=15,
|
||||
)
|
||||
get_ptz_mock.assert_called_once_with()
|
||||
get_ptz_mock.assert_called_once_with(timeout=160)
|
||||
|
||||
def test_manual_ptz_accepts_annotated_display_format(self):
|
||||
self.assertEqual(
|
||||
|
||||
Reference in new issue
Block a user