Skip to content

Commit

Permalink
Only fail on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nineteendo committed Jul 31, 2024
1 parent 31b2f1b commit 0847c82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
- name: Install test dependencies
run: pip install -r .github/workflows/requirements.txt
- name: Test with pytest
run: pytest
run: pytest -x --runxfail
1 change: 1 addition & 0 deletions src/jsonyx/test/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def get_json(request: pytest.FixtureRequest) -> ModuleType:
"""Get JSON module."""
json: ModuleType | None = request.param
if json is None:
pytest.xfail("module unavailable")
pytest.fail("module unavailable")

return json

0 comments on commit 0847c82

Please sign in to comment.