feat(test): set up test infrastructure (pytest + respx) #15

Closed
opened 2026-06-08 05:31:09 +00:00 by a-limasov · 0 comments
Owner

Goal

Add testing infrastructure as described in CLAUDE.md.

Tasks

  • Add pytest, respx, pytest-cov to dev dependencies in pyproject.toml
  • Create tests/conftest.py with shared fixtures:
    • mock httpx.Client transport pointing to a fake Gitea URL
    • config override so tests do not require a real config.json
  • Create tests/smoke/ and tests/unit/ directory skeletons with __init__.py
  • Verify uv run pytest runs without errors on an empty test suite

Acceptance criteria

  • uv run pytest exits 0
  • uv run pytest --cov=server reports coverage
  • No real network calls are made during uv run pytest
## Goal Add testing infrastructure as described in `CLAUDE.md`. ## Tasks - Add `pytest`, `respx`, `pytest-cov` to dev dependencies in `pyproject.toml` - Create `tests/conftest.py` with shared fixtures: - mock `httpx.Client` transport pointing to a fake Gitea URL - config override so tests do not require a real `config.json` - Create `tests/smoke/` and `tests/unit/` directory skeletons with `__init__.py` - Verify `uv run pytest` runs without errors on an empty test suite ## Acceptance criteria - `uv run pytest` exits 0 - `uv run pytest --cov=server` reports coverage - No real network calls are made during `uv run pytest`
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: a-limasov/gitea-platform-mcp#15