소스 검색

Move borgmatic.borg.execute module up a level for broader use.

Dan Helfman 6 년 전
부모
커밋
f5582b1754
5개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 1
      borgmatic/borg/create.py
  2. 1 1
      borgmatic/borg/info.py
  3. 1 1
      borgmatic/borg/list.py
  4. 0 0
      borgmatic/execute.py
  5. 1 1
      tests/unit/borg/test_execute.py

+ 1 - 1
borgmatic/borg/create.py

@@ -4,7 +4,7 @@ import logging
 import os
 import tempfile
 
-from borgmatic.borg.execute import execute_command
+from borgmatic.execute import execute_command
 from borgmatic.logger import get_logger
 
 logger = get_logger(__name__)

+ 1 - 1
borgmatic/borg/info.py

@@ -1,6 +1,6 @@
 import logging
 
-from borgmatic.borg.execute import execute_command
+from borgmatic.execute import execute_command
 from borgmatic.logger import get_logger
 
 logger = get_logger(__name__)

+ 1 - 1
borgmatic/borg/list.py

@@ -1,6 +1,6 @@
 import logging
 
-from borgmatic.borg.execute import execute_command
+from borgmatic.execute import execute_command
 from borgmatic.logger import get_logger
 
 logger = get_logger(__name__)

+ 0 - 0
borgmatic/borg/execute.py → borgmatic/execute.py


+ 1 - 1
tests/unit/borg/test_execute.py

@@ -2,7 +2,7 @@ import logging
 
 from flexmock import flexmock
 
-from borgmatic.borg import execute as module
+from borgmatic import execute as module
 
 
 def test_execute_command_calls_full_command():