From 3f8c3b5ae9345c151cab0aeecf81e1555cfa80e2 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Fri, 19 Apr 2019 23:57:13 -0700 Subject: [PATCH] Move config module to config/config_files --- bin/backup | 2 +- rbackup/config/__init__.py | 0 rbackup/{config.py => config/config_files.py} | 0 tests/test_config.py | 6 +++--- 4 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 rbackup/config/__init__.py rename rbackup/{config.py => config/config_files.py} (100%) diff --git a/bin/backup b/bin/backup index ab70b69..a478ade 100644 --- a/bin/backup +++ b/bin/backup @@ -24,7 +24,7 @@ import sys from contextlib import contextmanager from subprocess import CalledProcessError -import rbackup.config as config +import rbackup.config.config_files as config import rbackup.rsync from rbackup.struct.repository import Repository diff --git a/rbackup/config/__init__.py b/rbackup/config/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/rbackup/config.py b/rbackup/config/config_files.py similarity index 100% rename from rbackup/config.py rename to rbackup/config/config_files.py diff --git a/tests/test_config.py b/tests/test_config.py index f6e8282..419e08e 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -8,11 +8,11 @@ from pathlib import Path from tempfile import NamedTemporaryFile from unittest.mock import patch -import rbackup.config as config +import rbackup.config.config_files as config # ========== Constants ========== -TESTING_PACKAGE = "rbackup" -TESTING_MODULE = f"{TESTING_PACKAGE}.config" +TESTING_PACKAGE = "rbackup.config" +TESTING_MODULE = f"{TESTING_PACKAGE}.config_files" # ========== Tests ==========