β All terms Β· Testing
Parametrize
Run the same test against multiple inputs: `@pytest.mark.parametrize("x,y", [(1,2), (3,4)])`. Replaces copy-paste tests.
Learn this interactively:
Open lesson lesson-142 ββ All terms Β· Testing
Run the same test against multiple inputs: `@pytest.mark.parametrize("x,y", [(1,2), (3,4)])`. Replaces copy-paste tests.
Learn this interactively:
Open lesson lesson-142 β