Implementing Data-Driven Testing with Pytest's Parametrize Decorator
The @pytest.mark.parametrize decorator accepts a string of parameter names and a list of data sets to execute a test function multiple times with different inputs.
The first argument is a comma-separated string of parameter names. The second argument is a list, where each element is a tuple providing values for those parameters.
For a single pa ...
Posted on Thu, 07 May 2026 21:02:34 +0000 by bulrush