Complete the code to parametrize the test with two values.
import pytest @pytest.mark.parametrize('input', [1]) def test_example(input): assert input > 0
The parameter list must be a list, so use [1, 2].
Complete the code to parametrize the test with two arguments: input and expected.
import pytest @pytest.mark.parametrize('[1]', [(1, 2), (3, 4)]) def test_sum(input, expected): assert input + 1 == expected
Multiple parameters must be given as a comma-separated string.
Fix the error in the parametrize decorator to correctly test multiple cases.
import pytest @pytest.mark.parametrize('num, expected', [1]) def test_double(num, expected): assert num * 2 == expected
The parameter list must be a list of tuples with two values each.
Fill both blanks to parametrize a test with three parameters and three sets of values.
import pytest @pytest.mark.parametrize('[1]', [2]) def test_calc(a, b, c): assert a + b == c
Parameter names must be comma-separated string and values a list of tuples with three elements.
Fill all three blanks to parametrize a test with two parameters and check if the sum is even.
import pytest @pytest.mark.parametrize('[1]', [2]) def test_even_sum(x, y): assert (x + y) [3] 0
Parameters are 'x, y', values are list of tuples, and the assertion checks if sum modulo 2 equals 0.