Inspectopedia 2026.3 Help

Test frameworks

Fixture is not requested by test functions  

Reports if a fixture is used without being passed to test function parameters or to @pytest.mark.usefixtures decorator.

Incorrect arguments in @pytest.mark.parametrize  

Reports functions that are decorated with @pytest.mark.parametrize but do not have arguments to accept parameters of the decorator.

Incorrect number of parameters for @patch decorated function  

Reports functions decorated with @patch or @patch.object where the number of parameters does not match the number of mock objects injected by the decorators.

Invalid patch() target   New in this release

Reports a patch() target without a dot.

Last modified: 20 November 2026