diff --git a/tests/unit/cli/python_project/project/src/pkg/module.py b/tests/unit/cli/python_project/project/pkg/module.py similarity index 100% rename from tests/unit/cli/python_project/project/src/pkg/module.py rename to tests/unit/cli/python_project/project/pkg/module.py diff --git a/tests/unit/core/python/_core/test_PythonDocumentationGenerator.py b/tests/unit/core/python/_core/test_PythonDocumentationGenerator.py index 89612b9..36f095f 100644 --- a/tests/unit/core/python/_core/test_PythonDocumentationGenerator.py +++ b/tests/unit/core/python/_core/test_PythonDocumentationGenerator.py @@ -31,7 +31,7 @@ from src.jcloud_docsgen.core.python.namespaces import ( ( PythonDocumentationGenerator( pathlib.Path( - 'tests/unit/core/python/_core/test_project_dirs/pdir_1' + 'tests/unit/core/python/_core/test_project_dirs/pdir_1/src' ), pathlib.Path( 'tests/unit/core/python/_core/test_project_dirs/pdir_1/docs' @@ -42,7 +42,7 @@ from src.jcloud_docsgen.core.python.namespaces import ( ( PythonDocumentationGenerator( pathlib.Path( - 'tests/unit/core/python/_core/test_project_dirs/pdir_2' + 'tests/unit/core/python/_core/test_project_dirs/pdir_2/src' ), pathlib.Path( 'tests/unit/core/python/_core/test_project_dirs/pdir_2/docs' @@ -58,7 +58,7 @@ from src.jcloud_docsgen.core.python.namespaces import ( ( PythonDocumentationGenerator( pathlib.Path( - 'tests/unit/core/python/_core/test_project_dirs/pdir_3' + 'tests/unit/core/python/_core/test_project_dirs/pdir_3/src' ), pathlib.Path( 'tests/unit/core/python/_core/test_project_dirs/pdir_3/docs' @@ -85,7 +85,7 @@ def test_PythonDocumentationGenerator_collect_modules( python_documentation_generator: PythonDocumentationGenerator, expected, ): - assert python_documentation_generator.namespace() == expected + assert python_documentation_generator.namespace().sub_namespaces == expected @pytest.mark.parametrize( @@ -130,7 +130,7 @@ def test_creates_directory(): project_dir = pathlib.Path(project_dir) # The directory of the package - package_dir = project_dir / 'src' / 'pkg' + package_dir = project_dir / 'pkg' assert not package_dir.exists() package_dir.mkdir(parents=True, exist_ok=True) diff --git a/tests/unit/core/python/_core/test_PythonDocumentationGenerator/test_generate_documentation/case01/project/src/.gitkeep b/tests/unit/core/python/_core/test_PythonDocumentationGenerator/test_generate_documentation/case01/project/.gitkeep similarity index 100% rename from tests/unit/core/python/_core/test_PythonDocumentationGenerator/test_generate_documentation/case01/project/src/.gitkeep rename to tests/unit/core/python/_core/test_PythonDocumentationGenerator/test_generate_documentation/case01/project/.gitkeep diff --git a/tests/unit/core/python/_core/test_PythonDocumentationGenerator/test_generate_documentation/case02/project/src/pkg/module.py b/tests/unit/core/python/_core/test_PythonDocumentationGenerator/test_generate_documentation/case02/project/pkg/module.py similarity index 100% rename from tests/unit/core/python/_core/test_PythonDocumentationGenerator/test_generate_documentation/case02/project/src/pkg/module.py rename to tests/unit/core/python/_core/test_PythonDocumentationGenerator/test_generate_documentation/case02/project/pkg/module.py diff --git a/tests/unit/core/python/_core/test_PythonDocumentationGenerator/test_generate_documentation/case03/project/src/user_management/exceptions.py b/tests/unit/core/python/_core/test_PythonDocumentationGenerator/test_generate_documentation/case03/project/user_management/exceptions.py similarity index 100% rename from tests/unit/core/python/_core/test_PythonDocumentationGenerator/test_generate_documentation/case03/project/src/user_management/exceptions.py rename to tests/unit/core/python/_core/test_PythonDocumentationGenerator/test_generate_documentation/case03/project/user_management/exceptions.py diff --git a/tests/unit/core/python/_core/test_PythonDocumentationGenerator/test_generate_documentation/case03/project/src/user_management/models.py b/tests/unit/core/python/_core/test_PythonDocumentationGenerator/test_generate_documentation/case03/project/user_management/models.py similarity index 100% rename from tests/unit/core/python/_core/test_PythonDocumentationGenerator/test_generate_documentation/case03/project/src/user_management/models.py rename to tests/unit/core/python/_core/test_PythonDocumentationGenerator/test_generate_documentation/case03/project/user_management/models.py diff --git a/tests/unit/core/python/_core/test_PythonDocumentationGenerator/test_generate_documentation/case03/project/src/user_management/service.py b/tests/unit/core/python/_core/test_PythonDocumentationGenerator/test_generate_documentation/case03/project/user_management/service.py similarity index 100% rename from tests/unit/core/python/_core/test_PythonDocumentationGenerator/test_generate_documentation/case03/project/src/user_management/service.py rename to tests/unit/core/python/_core/test_PythonDocumentationGenerator/test_generate_documentation/case03/project/user_management/service.py diff --git a/tests/unit/core/python/_core/test_PythonDocumentationGenerator/test_generate_documentation/case03/project/src/user_management/storage.py b/tests/unit/core/python/_core/test_PythonDocumentationGenerator/test_generate_documentation/case03/project/user_management/storage.py similarity index 100% rename from tests/unit/core/python/_core/test_PythonDocumentationGenerator/test_generate_documentation/case03/project/src/user_management/storage.py rename to tests/unit/core/python/_core/test_PythonDocumentationGenerator/test_generate_documentation/case03/project/user_management/storage.py diff --git a/tests/unit/core/python/_core/test_PythonDocumentationGenerator/test_generate_documentation/case03/project/src/user_management/utils.py b/tests/unit/core/python/_core/test_PythonDocumentationGenerator/test_generate_documentation/case03/project/user_management/utils.py similarity index 100% rename from tests/unit/core/python/_core/test_PythonDocumentationGenerator/test_generate_documentation/case03/project/src/user_management/utils.py rename to tests/unit/core/python/_core/test_PythonDocumentationGenerator/test_generate_documentation/case03/project/user_management/utils.py