Skip to content

Commit 751b12a

Browse files
committed
OP#9015: Fix test_detect_cli to assert async method start with assert_awaited_once
1 parent f64f980 commit 751b12a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/cli/test_detect_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def test_pass_detect_cli(
233233
expected_config = create_expected_config_from_test_data(test_data)
234234

235235
mock_update_current_config.update.assert_called_once_with(expected_config)
236-
mock_otvision_detect.start.assert_called_once()
236+
mock_otvision_detect.start.assert_awaited_once()
237237

238238
@pytest.mark.parametrize(argnames="test_fail_data", argvalues=TEST_FAIL_DATA)
239239
def test_fail_wrong_types_passed_to_detect_cli(

0 commit comments

Comments
 (0)