Parametrize pytest test¶
Parametrize pytest test adds, removes, and maintains pytest.mark.parametrize parameters for pytest tests.
How to use it¶
Place the caret in a pytest test or parametrize decorator, then run the available BetterPy parametrize intention.
When it helps¶
Use these intentions when turning a single test into a parametrized test, adding another parameter to an existing decorator, removing an unused parameter, or renaming parametrized arguments safely.
Notes¶
- The feature includes rename validation for parametrized argument names.
- BetterPy keeps function parameters and decorator argnames synchronized.
- The feature is gated by the Parametrize pytest test setting under Settings | BetterPy | Testing (Pytest) | Parametrize.