parametrize
Multiple inputs, one test.
@pytest.mark.parametrize('a,b,expected', [(1,1,2),(2,3,5)])
def test_add(a,b,expected):
assert a+b == expected
Multiple inputs, one test.
@pytest.mark.parametrize('a,b,expected', [(1,1,2),(2,3,5)])
def test_add(a,b,expected):
assert a+b == expected