You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test suite has good unit test coverage for services (cache, markdown, feed, URL rewriter, Pygments CSS) but no integration tests that exercise actual HTTP endpoints via FastAPI's TestClient.
Description
The test suite has good unit test coverage for services (cache, markdown, feed, URL rewriter, Pygments CSS) but no integration tests that exercise actual HTTP endpoints via FastAPI's
TestClient.Current Coverage
Tested (unit): cache, markdown parsing, feed generation, URL rewriter, Pygments CSS, config parsing, draft filtering, models
Not tested (integration):
GET /posts) — pagination, draft filtering for anonymous vs adminGET /posts/{slug}) — 200, 404, draft visibilityGET /{slug}) — 200, 404GET /feed.xml) — response type, content, caching headersGET /health)GET /static/user/*,GET /static/{theme}/*)GET /favicon.ico)GET /pygments.css)/auth/meImplementation Notes
TestClient(orhttpx.AsyncClientwithASGITransport)GitHubServiceto avoid real API callsconftest.pywith shared fixtures for app client, mock content, mock configtest_routes_posts.py,test_routes_admin.py, etc.Priority
Start with the most critical paths:
— Claude