Pickup addition positional args passed to _parse_parametrize_ar… (#5483)

Pickup addition positional args passed to _parse_parametrize_args
This commit is contained in:
Bruno Oliveira
2019-06-24 22:05:19 -03:00
parent 4b104ba222
commit d5eed3bb9c
4 changed files with 17 additions and 4 deletions

View File

@@ -1765,3 +1765,16 @@ class TestMarkersWithParametrization(object):
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)