diff --git a/tests/conftest.py b/tests/conftest.py index 4b9c2766..1f70dc20 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -5,6 +5,15 @@ _XDIST_ARGS = ["--numprocesses", "auto"] +@pytest.fixture( + params=[_NO_ARGS, _XDIST_ARGS], + ids=["no_plugin", "with_xdist"], +) +def plugin_args(request: pytest.FixtureRequest) -> list[str]: + """Fixture to test with various plugins""" + return request.param + + @pytest.fixture( params=[ _NO_ARGS, @@ -15,6 +24,6 @@ ], ids=["no_plugin", "with_xdist"], ) -def plugin_args(request: pytest.FixtureRequest) -> list[str]: - """Fixture to test with various plugins""" +def plugin_args_fails_xdist(request: pytest.FixtureRequest) -> list[str]: + """Fixture to test with various plugins, but expected to fail xdist""" return request.param