From 8b4ec8d2662a49b283ca15403891e0776dc90f28 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 17 Oct 2024 11:57:17 +0200 Subject: [PATCH] Add tests --- tests/conftest.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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