pytest.mark.parametrize: Test Your Functions with Multiple Inputs

If you want to test your function with different examples, use the pytest.mark.parametrize decorator.

My previous tips on testing.

Scroll to Top