fix unit tests
This commit is contained in:
parent
20a3062021
commit
8a41f59843
1 changed files with 2 additions and 2 deletions
|
|
@ -47,8 +47,8 @@ def test_main_exit_code(mock_sys_exit, return_code: int):
|
|||
main()
|
||||
|
||||
assert mock_logger_cleanup.call_count == 1
|
||||
assert mock_logger_cleanup.call_args.kwargs["cleanup_error_log"] == (
|
||||
True if return_code == 0 else False
|
||||
assert mock_logger_cleanup.call_args.kwargs["has_error"] == (
|
||||
True if return_code != 0 else False
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue