Skip to content

Commit

Permalink
Fixed test to look for warning logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
coordt committed Sep 28, 2024
1 parent 39fc233 commit 538c420
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_hooks/test_run_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ def test_raises_exception_if_hook_fails(mocker):

# Assert
expected_debug_calls = [mocker.call("Running 'script1'")]
expected_info_calls = [mocker.call("output"), mocker.call("error")]
expected_warning_calls = [mocker.call("output"), mocker.call("error")]
mock_logger.debug.assert_has_calls(expected_debug_calls)
mock_logger.info.assert_has_calls(expected_info_calls)
mock_logger.warning.assert_has_calls(expected_warning_calls)
mock_run_command.assert_any_call("script1", env)


Expand Down

0 comments on commit 538c420

Please sign in to comment.