Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet committed Oct 17, 2024
1 parent 73185c8 commit 8b4ec8d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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

0 comments on commit 8b4ec8d

Please sign in to comment.