mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
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
13 lines
269 B
Python
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(one, two, three):
|
|
assert sum(one) + sum(tw<caret>o) == three |