Remove a test

This commit is contained in:
Sadra Barikbin 2023-12-28 19:43:13 +03:30
parent 82a4e0bd6e
commit d5bf27c79a
1 changed files with 0 additions and 16 deletions

View File

@ -986,22 +986,6 @@ class TestMetafunc:
assert metafunc._calls[1].params == dict(x=3, y=4)
assert metafunc._calls[1].id == "3-4"
def test_parametrize_with_duplicate_args(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
def pytest_generate_tests(metafunc):
metafunc.parametrize('x', [0, 1])
metafunc.parametrize('x', [2, 3])
def test(x):
pass
"""
)
result = pytester.runpytest("--collect-only")
assert any(["duplicate 'x'" in line for line in result.outlines])
result.assert_outcomes(errors=1)
def test_parametrize_with_duplicate_values(self) -> None:
metafunc = self.Metafunc(lambda x, y: None)
metafunc.parametrize(("x", "y"), [(1, 2), (3, 4), (1, 5), (2, 2)])