Pytest parametrize count mismatch inspection¶
This inspection reports @pytest.mark.parametrize entries where the number of values does not match the number of argument names.
How to use it¶
Enable the inspection under Settings | BetterPy | Testing (Pytest) | Parametrize. BetterPy highlights mismatched parametrize rows in the editor.
Notes¶
- The inspection understands plain value rows and
pytest.param(...)rows. - It is gated by the Pytest parametrize count mismatch setting.