Skip to content

Pytest parametrize unused argname inspection

This inspection reports parametrized argument names that are not used by the target test body.

How to use it

Enable the inspection under Settings | BetterPy | Testing (Pytest) | Parametrize. BetterPy highlights unused argnames and the corresponding values.

Notes

  • The inspection accounts for stacked parametrize decorators.
  • It is gated by the Pytest parametrize unused argname setting.