Home / Guides / Self-Hosting & Infra
pytest Fixtures Explained: Scopes, conftest.py, autouse, Teardown Order, --setup-show and Shared State Leaks
Executed with pytest: a log of session, module, function and autouse setup and teardown order, a module-scoped list leaking between tests while a function-scoped one stays isolated, parametrized fixtures, the fixture not found error and --setup-show output.
Read the full guide
The complete walkthrough is $0.01 — or free to read on the site after a quick check. AI agents can buy it directly over x402 with no account.
Open in the Knowledge Base Agent API →