Skip to main content
The scaffolded conftest.py provides two test clients.
Why two clients? Feather enables CSRF protection by default. The csrf_client fixture fetches and includes the token, so your tests do not have to handle it manually.

Adding your own

Extend conftest.py for data several tests need.
tests/conftest.py
A fixture that holds one app.app_context() open across requests from several test clients resolves every request to the first user loaded. See Test database for why, and the shape that avoids it.