Skip to content

Commit 8b4ec8d

Browse files
committed
Add tests
1 parent 73185c8 commit 8b4ec8d

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Diff for: tests/conftest.py

+11-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@
55
_XDIST_ARGS = ["--numprocesses", "auto"]
66

77

8+
@pytest.fixture(
9+
params=[_NO_ARGS, _XDIST_ARGS],
10+
ids=["no_plugin", "with_xdist"],
11+
)
12+
def plugin_args(request: pytest.FixtureRequest) -> list[str]:
13+
"""Fixture to test with various plugins"""
14+
return request.param
15+
16+
817
@pytest.fixture(
918
params=[
1019
_NO_ARGS,
@@ -15,6 +24,6 @@
1524
],
1625
ids=["no_plugin", "with_xdist"],
1726
)
18-
def plugin_args(request: pytest.FixtureRequest) -> list[str]:
19-
"""Fixture to test with various plugins"""
27+
def plugin_args_fails_xdist(request: pytest.FixtureRequest) -> list[str]:
28+
"""Fixture to test with various plugins, but expected to fail xdist"""
2029
return request.param

0 commit comments

Comments
 (0)