Pickup additional positional args passed to _parse_parametrize_args

This commit is contained in:
Kevin J. Foley
2019-06-24 19:07:40 -04:00
parent a24933b0a6
commit 95714436a1
4 changed files with 17 additions and 4 deletions

View File

@@ -1761,3 +1761,16 @@ class TestMarkersWithParametrization:
result.stdout.fnmatch_lines(
["*test_func_a*0*PASS*", "*test_func_a*2*PASS*", "*test_func_b*10*PASS*"]
)
def test_parametrize_positional_args(self, testdir):
testdir.makepyfile(
"""
import pytest
@pytest.mark.parametrize("a", [1], False)
def test_foo(a):
pass
"""
)
result = testdir.runpytest()
result.assert_outcomes(passed=1)