diff --git a/src/codemodder/context.py b/src/codemodder/context.py index 719f7e79..4d58036c 100644 --- a/src/codemodder/context.py +++ b/src/codemodder/context.py @@ -6,7 +6,7 @@ from codemodder.change import ChangeSet from codemodder.dependency import Dependency -from codemodder.dependency_manager import DependencyManager +from codemodder.dependency_management import DependencyManager from codemodder.executor import CodemodExecutorWrapper from codemodder.file_context import FileContext from codemodder.logging import logger, log_list diff --git a/src/codemodder/dependency_management/__init__.py b/src/codemodder/dependency_management/__init__.py new file mode 100644 index 00000000..ad101a44 --- /dev/null +++ b/src/codemodder/dependency_management/__init__.py @@ -0,0 +1 @@ +from .dependency_manager import DependencyManager, Requirement diff --git a/src/codemodder/dependency_manager.py b/src/codemodder/dependency_management/dependency_manager.py similarity index 100% rename from src/codemodder/dependency_manager.py rename to src/codemodder/dependency_management/dependency_manager.py diff --git a/tests/conftest.py b/tests/conftest.py index c366bea1..38b3712d 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -44,7 +44,9 @@ def disable_write_dependencies(): """ Unit tests should not write any dependency files """ - dm_write = mock.patch("codemodder.dependency_manager.DependencyManager.write") + dm_write = mock.patch( + "codemodder.dependency_management.dependency_manager.DependencyManager.write" + ) dm_write.start() yield diff --git a/tests/test_dependency_manager.py b/tests/test_dependency_manager.py index f4a98cbf..35474099 100644 --- a/tests/test_dependency_manager.py +++ b/tests/test_dependency_manager.py @@ -3,7 +3,7 @@ import pytest from codemodder.dependency import DefusedXML, Security -from codemodder.dependency_manager import DependencyManager, Requirement +from codemodder.dependency_management import DependencyManager, Requirement @pytest.fixture(autouse=True, scope="module")