Skip to content

Commit 8856878

Browse files
committed
tests: a few better ids
Signed-off-by: Henry Schreiner <[email protected]>
1 parent c032a80 commit 8856878

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

tests/test_schema.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ def test_compare_schemas():
2828
]
2929

3030

31-
@pytest.mark.parametrize("filepath", SCHEMAS)
31+
@pytest.mark.parametrize(
32+
"filepath", SCHEMAS, ids=lambda x: str(x.relative_to(DIR.parent).parent)
33+
)
3234
def test_valid_schemas_files(filepath: Path) -> None:
3335
api = pytest.importorskip("validate_pyproject.api")
3436

tests/test_simplest_c.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ def test_pep517_sdist(tmp_path, monkeypatch):
4545
@pytest.mark.compile
4646
@pytest.mark.configure
4747
@pytest.mark.parametrize(
48-
"component", [[], ["PythonModule"], ["PythonModule", "Generated"]]
48+
"component",
49+
[
50+
pytest.param([], id="all"),
51+
pytest.param(["PythonModule"], id="one"),
52+
pytest.param(["PythonModule", "Generated"], id="two"),
53+
],
4954
)
5055
def test_pep517_wheel(tmp_path, monkeypatch, virtualenv, component):
5156
dist = tmp_path / "dist"

0 commit comments

Comments
 (0)