diff --git a/pyproject.toml b/pyproject.toml index f6b496848..62c17cbe0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -160,6 +160,7 @@ markers = [ "isolated: Needs an isolated virtualenv", "network: Needs a network connection to setup or run", "setuptools: Tests setuptools integration", + "upstream: Intended to check our own development", "virtualenv: Needs a virtualenv", ] norecursedirs = ["tests/packages/**"] diff --git a/tests/test_schema.py b/tests/test_schema.py index e68c9decc..914f357c2 100644 --- a/tests/test_schema.py +++ b/tests/test_schema.py @@ -13,6 +13,8 @@ DIR = Path(__file__).parent.resolve() +pytestmark = pytest.mark.upstream + def test_compare_schemas(): """ @@ -28,7 +30,9 @@ def test_compare_schemas(): ] -@pytest.mark.parametrize("filepath", SCHEMAS) +@pytest.mark.parametrize( + "filepath", SCHEMAS, ids=lambda x: str(x.relative_to(DIR.parent).parent) +) def test_valid_schemas_files(filepath: Path) -> None: api = pytest.importorskip("validate_pyproject.api") diff --git a/tests/test_simplest_c.py b/tests/test_simplest_c.py index 328147e82..d18651143 100644 --- a/tests/test_simplest_c.py +++ b/tests/test_simplest_c.py @@ -45,7 +45,12 @@ def test_pep517_sdist(tmp_path, monkeypatch): @pytest.mark.compile @pytest.mark.configure @pytest.mark.parametrize( - "component", [[], ["PythonModule"], ["PythonModule", "Generated"]] + "component", + [ + pytest.param([], id="all"), + pytest.param(["PythonModule"], id="one"), + pytest.param(["PythonModule", "Generated"], id="two"), + ], ) def test_pep517_wheel(tmp_path, monkeypatch, virtualenv, component): dist = tmp_path / "dist"