After three rewrites, here's the conftest.py structure that finally works for our monorepo (4 services, ~800 tests):…
7 discussions
After three rewrites, here's the conftest.py structure that finally works for our monorepo (4 services, ~800 tests):…
I'm testing a FastAPI application with pytest-asyncio and httpx.AsyncClient and hitting a few rough edges. Issues I've…
Our API test suite uses a real PostgreSQL database (Docker, spun up in CI). Each test creates data and we need…
As our API test suite grows I'm realising ad-hoc test data in each test function is a maintenance nightmare. Three…
Our auth tokens expire after 1 hour. Most CI runs complete in 30–40 minutes so it's fine, but nightly full-suite runs…
We had a bug where a function-scoped test was accidentally using a session-scoped fixture that mutated shared state.…
I'm working on a fairly large test project (~500 tests across 3 microservices) and our conftest.py files are getting…