Hermes Wiki

Testing In Python

pytest, fixtures, mocking, parametrization, property-based testing (Hypothesis).

Why we need this / what value this brings

Good test design in Python leans hard on fixtures and parametrization — different muscle than xUnit-style testing.

When to use this

Any FastAPI endpoint or business-logic module — pytest fixtures make dependency injection in tests painless.

How to use or implement this

pytest + pytest-asyncio for the FastAPI stack, factory fixtures over setUp/tearDown boilerplate.

Research questions

  • (add as research surfaces open questions)

Empty folder — drop notes, links, and findings here as you research.

Hermes Wiki