MemotivaTesting in Python

What is parametrized testing in pytest?

Testing in Python

Audio flashcard · 0:13

Nortren·

What is parametrized testing in pytest?

0:13

Parametrized testing runs the same test function with different inputs using the pytest.mark.parametrize decorator. Each set of parameters becomes a separate test case in the report. This avoids duplicating test code for similar scenarios.
docs.pytest.org