Skip to content

Commit

Permalink
Catch warnings as errors in pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
mschoettle committed Aug 29, 2024
1 parent 053d502 commit cfdb924
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ jobs:
run: poetry run pre-commit run --all-files

- name: Run Tests (Django ${{ steps.poetry-install.outputs.django_version }})
# enforce failing fast: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
shell: bash
run: |
poetry run pytest \
--junitxml=pytest.xml \
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ asyncio_mode = "auto"
addopts = [
"--ds=tests.settings", # Forces pytest-django to use test settings
"--ignore-glob='*/models.py'",
"-W error",
]

[tool.ruff]
Expand Down
2 changes: 0 additions & 2 deletions tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@

USE_I18N = True

USE_L10N = True

USE_TZ = True


Expand Down

0 comments on commit cfdb924

Please sign in to comment.