generated from tophat/new-project-kit
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests highlighting xdist incompatibilities
- Loading branch information
Showing
3 changed files
with
74 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import pytest | ||
|
||
# Constants for testing with extra plugin arguments | ||
_NO_ARGS = [] | ||
_XDIST_ARGS = ["--numprocesses", "auto"] | ||
|
||
|
||
@pytest.fixture( | ||
params=[ | ||
_NO_ARGS, | ||
pytest.param( | ||
_XDIST_ARGS, | ||
marks=pytest.mark.xfail(reason="Not currently compatible with xdist"), | ||
), | ||
], | ||
ids=["no_plugin", "with_xdist"], | ||
) | ||
def plugin_args(request: pytest.FixtureRequest) -> list[str]: | ||
"""Fixture to test with various plugins""" | ||
return request.param |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters