feat(test): set up test infrastructure (pytest + respx) #15
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Add testing infrastructure as described in
CLAUDE.md.Tasks
pytest,respx,pytest-covto dev dependencies inpyproject.tomltests/conftest.pywith shared fixtures:httpx.Clienttransport pointing to a fake Gitea URLconfig.jsontests/smoke/andtests/unit/directory skeletons with__init__.pyuv run pytestruns without errors on an empty test suiteAcceptance criteria
uv run pytestexits 0uv run pytest --cov=serverreports coverageuv run pytest