Skip to content

Commit c398c6f

Browse files
committed
Set parametrized test names to something readable.
1 parent 86aec6c commit c398c6f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

referencing/tests/test_referencing_suite.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,13 @@ def __str__(self):
2828
DIALECT_IDS = json.loads(SUITE.joinpath("specifications.json").read_text())
2929

3030

31-
@pytest.mark.parametrize("test_path", SUITE.glob("*/**/*.json"))
31+
@pytest.mark.parametrize(
32+
"test_path",
33+
[
34+
pytest.param(each, id=f"{each.parent.name}-{each.stem}")
35+
for each in SUITE.glob("*/**/*.json")
36+
],
37+
)
3238
def test_referencing_suite(test_path):
3339
dialect_id = DIALECT_IDS[test_path.relative_to(SUITE).parts[0]]
3440
specification = referencing.jsonschema.specification_with(dialect_id)

0 commit comments

Comments
 (0)