Skip to content

Commit

Permalink
Avoid using deprecated pytest --strict
Browse files Browse the repository at this point in the history
  • Loading branch information
bluetech committed Dec 26, 2020
1 parent f9e7148 commit 5cc98c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ testing =
django-configurations>=2.0

[tool:pytest]
# --strict: warnings become errors.
# --strict-markers: error on using unregistered marker.
# -ra: show extra test summary info for everything.
addopts = --strict -ra
addopts = --strict-markers -ra
DJANGO_SETTINGS_MODULE = pytest_django_test.settings_sqlite_file
testpaths = tests

Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def create_app_file(code, filename):
testdir.makeini(
"""
[pytest]
addopts = --strict
addopts = --strict-markers
console_output_style=classic
"""
)
Expand Down

0 comments on commit 5cc98c1

Please sign in to comment.