From 7f126ce1274d02d6f2c5bd417774e3f0c57bb7f1 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Thu, 13 Jun 2019 10:09:16 -0700 Subject: [PATCH] Move hook.py file up a level. --- borgmatic/commands/borgmatic.py | 2 +- borgmatic/{commands => }/hook.py | 0 tests/unit/commands/test_hook.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename borgmatic/{commands => }/hook.py (100%) diff --git a/borgmatic/commands/borgmatic.py b/borgmatic/commands/borgmatic.py index c04dbac..568c435 100644 --- a/borgmatic/commands/borgmatic.py +++ b/borgmatic/commands/borgmatic.py @@ -9,6 +9,7 @@ from subprocess import CalledProcessError import colorama import pkg_resources +from borgmatic import hook from borgmatic.borg import check as borg_check from borgmatic.borg import create as borg_create from borgmatic.borg import environment as borg_environment @@ -17,7 +18,6 @@ from borgmatic.borg import info as borg_info from borgmatic.borg import init as borg_init from borgmatic.borg import list as borg_list from borgmatic.borg import prune as borg_prune -from borgmatic.commands import hook from borgmatic.config import checks, collect, convert, validate from borgmatic.logger import configure_logging, get_logger, should_do_markup from borgmatic.signals import configure_signals diff --git a/borgmatic/commands/hook.py b/borgmatic/hook.py similarity index 100% rename from borgmatic/commands/hook.py rename to borgmatic/hook.py diff --git a/tests/unit/commands/test_hook.py b/tests/unit/commands/test_hook.py index 6ad94f3..eb9cfb7 100644 --- a/tests/unit/commands/test_hook.py +++ b/tests/unit/commands/test_hook.py @@ -2,7 +2,7 @@ import logging from flexmock import flexmock -from borgmatic.commands import hook as module +from borgmatic import hook as module def test_execute_hook_invokes_each_command():