Reusable tests with pytest fixtures and subclassing This repo includes a simple fastapi app with one endpoint. The tests test this endpoint with the pattern in discussion. How to run pipenv shell pipenv sync --dev pytest