From cd8718c11473656543e32f13a81d0738be9ed7af Mon Sep 17 00:00:00 2001 From: lmiranda Date: Tue, 3 Feb 2026 18:08:54 -0500 Subject: [PATCH] Move tests to repository root and update pytest configuration - Move tests from src/gitea_mcp_remote/tests/ to tests/ (top-level) - Update pytest.ini to point to new test location - All imports already use absolute paths (gitea_mcp_remote.*) - Tests run successfully from new location (28/30 pass, 2 pre-existing failures) This improves project structure by following standard Python conventions where tests live at the repository root level rather than inside the source package. Closes #21 Co-Authored-By: Claude Opus 4.5 --- pytest.ini | 2 +- {src/gitea_mcp_remote/tests => tests}/__init__.py | 0 {src/gitea_mcp_remote/tests => tests}/conftest.py | 0 {src/gitea_mcp_remote/tests => tests}/test_config.py | 0 {src/gitea_mcp_remote/tests => tests}/test_filtering.py | 0 {src/gitea_mcp_remote/tests => tests}/test_middleware.py | 0 6 files changed, 1 insertion(+), 1 deletion(-) rename {src/gitea_mcp_remote/tests => tests}/__init__.py (100%) rename {src/gitea_mcp_remote/tests => tests}/conftest.py (100%) rename {src/gitea_mcp_remote/tests => tests}/test_config.py (100%) rename {src/gitea_mcp_remote/tests => tests}/test_filtering.py (100%) rename {src/gitea_mcp_remote/tests => tests}/test_middleware.py (100%) diff --git a/pytest.ini b/pytest.ini index 2b370ea..cd2175d 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,5 +1,5 @@ [pytest] -testpaths = src/gitea_mcp_remote/tests +testpaths = tests python_files = test_*.py python_classes = Test* python_functions = test_* diff --git a/src/gitea_mcp_remote/tests/__init__.py b/tests/__init__.py similarity index 100% rename from src/gitea_mcp_remote/tests/__init__.py rename to tests/__init__.py diff --git a/src/gitea_mcp_remote/tests/conftest.py b/tests/conftest.py similarity index 100% rename from src/gitea_mcp_remote/tests/conftest.py rename to tests/conftest.py diff --git a/src/gitea_mcp_remote/tests/test_config.py b/tests/test_config.py similarity index 100% rename from src/gitea_mcp_remote/tests/test_config.py rename to tests/test_config.py diff --git a/src/gitea_mcp_remote/tests/test_filtering.py b/tests/test_filtering.py similarity index 100% rename from src/gitea_mcp_remote/tests/test_filtering.py rename to tests/test_filtering.py diff --git a/src/gitea_mcp_remote/tests/test_middleware.py b/tests/test_middleware.py similarity index 100% rename from src/gitea_mcp_remote/tests/test_middleware.py rename to tests/test_middleware.py