Skip to content

Glossary: Coding with AI Assistants

parametrize

Also written: @pytest.mark.parametrize

A pytest decorator that runs one test function once per tuple of inputs, such as several subtotals for `shipping`. The report names each failing case, like `test_shipping[100.00-0.00]`.

Where the book teaches it

Related terms

Decoratorpytest