diff --git a/tests/integration/test_execute.py b/tests/integration/test_execute.py index bf580d9..2270765 100644 --- a/tests/integration/test_execute.py +++ b/tests/integration/test_execute.py @@ -11,15 +11,15 @@ def test_execute_and_log_output_logs_each_line_separately(): flexmock(module.logger).should_receive('log').with_args(logging.INFO, 'hi').once() flexmock(module.logger).should_receive('log').with_args(logging.INFO, 'there').once() - module.execute_and_log_output(['echo', 'hi\nthere'], output_log_level=logging.INFO, shell=False) + module.execute_and_log_output(['echo', 'hi'], output_log_level=logging.INFO, shell=False) + module.execute_and_log_output(['echo', 'there'], output_log_level=logging.INFO, shell=False) def test_execute_and_log_output_logs_borg_error_as_error(): flexmock(module.logger).should_receive('error').with_args('borg: error: oopsie').once() - flexmock(module.logger).should_receive('log').with_args(logging.INFO, 'daisie').once() module.execute_and_log_output( - ['echo', 'borg: error: oopsie\ndaisie\n'], output_log_level=logging.INFO, shell=False + ['echo', 'borg: error: oopsie'], output_log_level=logging.INFO, shell=False )