From be6b096de4990450397f8cd535415c0c3b63589b Mon Sep 17 00:00:00 2001 From: TanyaAgarwal28 <8979149361t@gmail.com> Date: Sun, 8 Oct 2023 18:21:39 +0530 Subject: [PATCH] Bug Fix 11456: Duplicated parameters in @pytest.mark.parametrize --- testing/acceptance_test.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py index 7a3bbad65..b6e438e3f 100644 --- a/testing/acceptance_test.py +++ b/testing/acceptance_test.py @@ -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(