Skip to content

Pytest parametrize unexpected keyword inspection

This inspection reports unsupported keyword arguments passed to pytest.mark.parametrize.

How to use it

Enable the inspection under Settings | BetterPy | Testing (Pytest) | Parametrize. BetterPy highlights misspelled or unsupported keyword names such as testids.

Notes

  • Supported keyword arguments are argnames, argvalues, indirect, ids, scope, and pytest's internal _param_mark argument.
  • The feature is gated by the Pytest parametrize unexpected keyword setting.