From f5582b175460c7d84f72a9dfff918164ab9957a8 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Wed, 12 Jun 2019 12:13:59 -0700 Subject: [PATCH] Move borgmatic.borg.execute module up a level for broader use. --- borgmatic/borg/create.py | 2 +- borgmatic/borg/info.py | 2 +- borgmatic/borg/list.py | 2 +- borgmatic/{borg => }/execute.py | 0 tests/unit/borg/test_execute.py | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename borgmatic/{borg => }/execute.py (100%) diff --git a/borgmatic/borg/create.py b/borgmatic/borg/create.py index 0e816ee..11abac4 100644 --- a/borgmatic/borg/create.py +++ b/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__) diff --git a/borgmatic/borg/info.py b/borgmatic/borg/info.py index 3e52650..06c176e 100644 --- a/borgmatic/borg/info.py +++ b/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__) diff --git a/borgmatic/borg/list.py b/borgmatic/borg/list.py index 4b28fd9..e76d42b 100644 --- a/borgmatic/borg/list.py +++ b/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__) diff --git a/borgmatic/borg/execute.py b/borgmatic/execute.py similarity index 100% rename from borgmatic/borg/execute.py rename to borgmatic/execute.py diff --git a/tests/unit/borg/test_execute.py b/tests/unit/borg/test_execute.py index 272e402..f1bb00a 100644 --- a/tests/unit/borg/test_execute.py +++ b/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():