From 46f15e2e8268ce54b5c9b5093cedc303e32fff1d Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Mon, 15 Apr 2019 10:40:06 -0700 Subject: [PATCH] Rename package_managers package to plugins --- .../{rbackup.package_managers.rst => rbackup.plugins.rst} | 0 rbackup/{package_managers => plugins}/__init__.py | 0 rbackup/{package_managers => plugins}/packagemanager.py | 2 +- rbackup/{package_managers => plugins}/pacman.py | 4 ++-- tests/test_packagemanager.py | 5 +++-- 5 files changed, 6 insertions(+), 5 deletions(-) rename doc/source/{rbackup.package_managers.rst => rbackup.plugins.rst} (100%) rename rbackup/{package_managers => plugins}/__init__.py (100%) rename rbackup/{package_managers => plugins}/packagemanager.py (98%) rename rbackup/{package_managers => plugins}/pacman.py (68%) diff --git a/doc/source/rbackup.package_managers.rst b/doc/source/rbackup.plugins.rst similarity index 100% rename from doc/source/rbackup.package_managers.rst rename to doc/source/rbackup.plugins.rst diff --git a/rbackup/package_managers/__init__.py b/rbackup/plugins/__init__.py similarity index 100% rename from rbackup/package_managers/__init__.py rename to rbackup/plugins/__init__.py diff --git a/rbackup/package_managers/packagemanager.py b/rbackup/plugins/packagemanager.py similarity index 98% rename from rbackup/package_managers/packagemanager.py rename to rbackup/plugins/packagemanager.py index a86c686..53f18ac 100644 --- a/rbackup/package_managers/packagemanager.py +++ b/rbackup/plugins/packagemanager.py @@ -1,6 +1,6 @@ """ .. moduleauthor:: Eric Torres -.. module:: rbackup.package_managers.packagemanager +.. module:: rbackup.plugins.packagemanager :synopsis: Module for package manager plugins. """ import logging diff --git a/rbackup/package_managers/pacman.py b/rbackup/plugins/pacman.py similarity index 68% rename from rbackup/package_managers/pacman.py rename to rbackup/plugins/pacman.py index 38980f1..f0ead4b 100644 --- a/rbackup/package_managers/pacman.py +++ b/rbackup/plugins/pacman.py @@ -1,9 +1,9 @@ """ .. moduleauthor:: Eric Torres -.. module:: rbackup.package_managers.pacman +.. module:: rbackup.plugins.pacman :synopsis: Implementation class for the Pacman package manager. """ -from rbackup.package_managers.packagemanager import PackageManager +from rbackup.plugins.packagemanager import PackageManager class Pacman(PackageManager): diff --git a/tests/test_packagemanager.py b/tests/test_packagemanager.py index 41bccd3..3e0a328 100644 --- a/tests/test_packagemanager.py +++ b/tests/test_packagemanager.py @@ -10,10 +10,11 @@ from unittest.mock import patch from hypothesis import given from hypothesis.strategies import from_regex, iterables, one_of, text -from rbackup.package_managers.packagemanager import PackageManager +from rbackup.plugins.packagemanager import PackageManager # ========== Constants ========== -TESTING_MODULE = "rbackup.package_managers.packagemanager" +TESTING_PACKAGE = "rbackup.plugins" +TESTING_MODULE = f"{TESTING_PACKAGE}.packagemanager" # ========== Test Cases ==========