fix: resolve test failures and remove unavailable dependency

- Remove gitea-mcp-server from dependencies (not yet on PyPI)
- Add starlette to dependencies (needed for middleware)
- Fix HealthCheckBypassMiddleware to actually bypass auth via request.state flag
- Fix test_required_fields to not require gitea_repo (optional for PMO mode)
- Update pytest testpaths to correct location

All 30 tests now pass.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-03 16:35:57 -05:00
parent f2cba079eb
commit 49f2d0bdbb
4 changed files with 16 additions and 7 deletions

View File

@@ -29,7 +29,9 @@ dependencies = [
"pydantic>=2.0.0",
"pydantic-settings>=2.0.0",
"python-dotenv>=1.0.0",
"gitea-mcp-server>=0.1.0",
"starlette>=0.36.0",
# gitea-mcp-server - installed separately (not on PyPI yet)
# See: https://gitea.hotserv.cloud/personal-projects/leo-claude-mktplace
]
[project.optional-dependencies]
@@ -53,7 +55,7 @@ where = ["src"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
testpaths = ["src/gitea_http_wrapper/tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]