Files
openide/python/testData/testCompletion/test_rename_parametrize_first_param.py
Egor.Eliseev 78c09fe774 PY-59189 Renaming parametrized fixture argument does not rename literal
Add PyTestParametrizedContributor that handles renaming the test function parameter and renames the decorator's `@pytest.mark.parametrize` argument

Merge-request: IJ-MR-108848
Merged-by: Egor Eliseev <Egor.Eliseev@jetbrains.com>

GitOrigin-RevId: e544298036603462379adcf7a452e65c22e002f6
2023-09-01 15:20:55 +00:00

13 lines
269 B
Python

import pytest
@pytest.mark.parametrize(
"one, two, three",
[
([1, 2], [1, 2], 6),
([1, 2, 3], [1, 2, 3], 12),
([1, 2, 3, 4], [1, 2, 3, 4], 20),
],
)
def test_solution(o<caret>ne, two, three):
assert sum(one) + sum(two) == three