tests: use ids (#6145)
This commit is contained in:
commit
19b2f4bb8a
|
@ -1229,13 +1229,15 @@ raise ValueError()
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"reason, description",
|
"reason, description",
|
||||||
[
|
[
|
||||||
(
|
pytest.param(
|
||||||
"cause",
|
"cause",
|
||||||
"The above exception was the direct cause of the following exception:",
|
"The above exception was the direct cause of the following exception:",
|
||||||
|
id="cause",
|
||||||
),
|
),
|
||||||
(
|
pytest.param(
|
||||||
"context",
|
"context",
|
||||||
"During handling of the above exception, another exception occurred:",
|
"During handling of the above exception, another exception occurred:",
|
||||||
|
id="context",
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
|
@ -358,7 +358,7 @@ class TestAssert_reprcompare:
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
["left", "right", "expected"],
|
["left", "right", "expected"],
|
||||||
[
|
[
|
||||||
(
|
pytest.param(
|
||||||
[0, 1],
|
[0, 1],
|
||||||
[0, 2],
|
[0, 2],
|
||||||
"""
|
"""
|
||||||
|
@ -368,8 +368,9 @@ class TestAssert_reprcompare:
|
||||||
+ [0, 2]
|
+ [0, 2]
|
||||||
? ^
|
? ^
|
||||||
""",
|
""",
|
||||||
|
id="lists",
|
||||||
),
|
),
|
||||||
(
|
pytest.param(
|
||||||
{0: 1},
|
{0: 1},
|
||||||
{0: 2},
|
{0: 2},
|
||||||
"""
|
"""
|
||||||
|
@ -379,8 +380,9 @@ class TestAssert_reprcompare:
|
||||||
+ {0: 2}
|
+ {0: 2}
|
||||||
? ^
|
? ^
|
||||||
""",
|
""",
|
||||||
|
id="dicts",
|
||||||
),
|
),
|
||||||
(
|
pytest.param(
|
||||||
{0, 1},
|
{0, 1},
|
||||||
{0, 2},
|
{0, 2},
|
||||||
"""
|
"""
|
||||||
|
@ -390,6 +392,7 @@ class TestAssert_reprcompare:
|
||||||
+ {0, 2}
|
+ {0, 2}
|
||||||
? ^
|
? ^
|
||||||
""",
|
""",
|
||||||
|
id="sets",
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue