Skip to main content

Overview

reagent-flow ships as a pytest plugin, auto-loaded via entry point. It provides CLI flags, fixtures, and a marker — no manual registration needed.

CLI flags

Fixtures

Using the fixture

The reagent_session fixture is the recommended way to use reagent-flow in tests:

Golden baseline marker

Use the @pytest.mark.reagent marker to control golden baseline behavior:
Or update all goldens at once:

Manual session management

You can still manage sessions manually for more control:

Running tests

Use coverage run -m pytest instead of pytest --cov. There is a plugin load-order issue with the --cov flag.