Skip to content

Pytest parametrize ids count inspection

This inspection reports ids=[...] lists whose length does not match the number of parametrized test cases.

How to use it

Enable the inspection under Settings | BetterPy | Testing (Pytest) | Parametrize. BetterPy highlights ids lists that do not line up with the parametrized values.

Notes

  • Matching ids counts keep pytest output names predictable.
  • The feature is gated by the Pytest parametrize ids count setting.