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

This commit is contained in:
Tanya Agarwal 2023-10-08 17:30:38 +05:30 committed by GitHub
parent 54623f0f33
commit 54b074bbe1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

11
testing/test_python.py Normal file
View File

@ -0,0 +1,11 @@
import pytest
@pytest.mark.parametrize("a", [1, 2, 10, 11, 2, 1, 12, 11,2_1])
def test_params(a):
print('a:', a)
assert a > 0
@pytest.mark.parametrize("a", [1, 2, 10, 11, 2, 1, 12, 11])
def test_params(a):
print('a:', a)
assert a > 0