Bug Fix 11456: Duplicated parameters in @pytest.mark.parametrize

This commit is contained in:
TanyaAgarwal28 2023-10-08 18:21:39 +05:30
parent 0d15eab61d
commit be6b096de4
1 changed files with 4 additions and 6 deletions

View File

@ -351,9 +351,8 @@ class TestGeneralUsage:
pass
"""
)
res = pytester.runpytest(p.name + "::" + "test_func[1]")
assert res.ret == 0
res.stdout.fnmatch_lines(["*1 passed*"])
result = pytester.runpytest(p)
result.assert_outcomes(failed=0, passed=8)
def test_direct_addressing_selects_duplicates_1(self, pytester: Pytester) -> None:
p = pytester.makepyfile(
@ -365,9 +364,8 @@ class TestGeneralUsage:
pass
"""
)
res = pytester.runpytest(p.name + "::" + "test_func[1]")
assert res.ret == 0
res.stdout.fnmatch_lines(["*1 passed*"])
result = pytester.runpytest(p)
result.assert_outcomes(failed=0, passed=9)
def test_direct_addressing_notfound(self, pytester: Pytester) -> None:
p = pytester.makepyfile(