浏览代码

add review changes

Vandal 1 月之前
父节点
当前提交
4e05539825
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      tests/unit/borg/test_compact.py

+ 2 - 0
tests/unit/borg/test_compact.py

@@ -90,6 +90,8 @@ def test_compact_segments_with_dry_run_executes_borg_call_when_feature_available
     flexmock(module.feature).should_receive('available').with_args(
     flexmock(module.feature).should_receive('available').with_args(
         module.feature.Feature.DRY_RUN_COMPACT, '1.4.1'
         module.feature.Feature.DRY_RUN_COMPACT, '1.4.1'
     ).and_return(True)
     ).and_return(True)
+    flexmock(module.environment).should_receive('make_environment').once()
+    flexmock(module.borgmatic.config.paths).should_receive('get_working_directory').once()
     flexmock(module).should_receive('execute_command').once()
     flexmock(module).should_receive('execute_command').once()
 
 
     module.compact_segments(
     module.compact_segments(