Files
openide/python/testData/testCompletion/after_rename_parametrize_function_body.txt
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
268 B
Plaintext

import pytest
@pytest.mark.parametrize(
"one, lst_2, 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(one, lst_2, three):
assert sum(one) + sum(lst_2) == three