Skip to content

Commit

Permalink
Fix tests in Python 3.6.
Browse files Browse the repository at this point in the history
  • Loading branch information
witten committed Jun 14, 2019
1 parent 1c825b5 commit 1ba56d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integration/test_execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)


Expand Down

0 comments on commit 1ba56d5

Please sign in to comment.