Fix missing mock in unit test.
This commit is contained in:
parent
9f5769f87b
commit
8bb7631f50
1 changed files with 1 additions and 1 deletions
|
@ -2550,7 +2550,7 @@ def test_create_archive_with_non_existent_directory_and_source_directories_must_
|
||||||
flexmock(module.borgmatic.logger).should_receive('add_custom_log_levels')
|
flexmock(module.borgmatic.logger).should_receive('add_custom_log_levels')
|
||||||
flexmock(module.logging).ANSWER = module.borgmatic.logger.ANSWER
|
flexmock(module.logging).ANSWER = module.borgmatic.logger.ANSWER
|
||||||
flexmock(module).should_receive('collect_borgmatic_source_directories').and_return([])
|
flexmock(module).should_receive('collect_borgmatic_source_directories').and_return([])
|
||||||
flexmock(module.os.path).should_receive('exists').and_return(False)
|
flexmock(module).should_receive('check_all_source_directories_exist').and_raise(ValueError)
|
||||||
|
|
||||||
with pytest.raises(ValueError):
|
with pytest.raises(ValueError):
|
||||||
module.create_archive(
|
module.create_archive(
|
||||||
|
|
Loading…
Reference in a new issue