Skip to content

Commit 538c420

Browse files
committed
Fixed test to look for warning logs.
1 parent 39fc233 commit 538c420

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_hooks/test_run_hooks.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ def test_raises_exception_if_hook_fails(mocker):
4949

5050
# Assert
5151
expected_debug_calls = [mocker.call("Running 'script1'")]
52-
expected_info_calls = [mocker.call("output"), mocker.call("error")]
52+
expected_warning_calls = [mocker.call("output"), mocker.call("error")]
5353
mock_logger.debug.assert_has_calls(expected_debug_calls)
54-
mock_logger.info.assert_has_calls(expected_info_calls)
54+
mock_logger.warning.assert_has_calls(expected_warning_calls)
5555
mock_run_command.assert_any_call("script1", env)
5656

5757

0 commit comments

Comments
 (0)