Skip to content

Commit 5cc98c1

Browse files
committed
Avoid using deprecated pytest --strict
1 parent f9e7148 commit 5cc98c1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ testing =
5151
django-configurations>=2.0
5252

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

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def create_app_file(code, filename):
136136
testdir.makeini(
137137
"""
138138
[pytest]
139-
addopts = --strict
139+
addopts = --strict-markers
140140
console_output_style=classic
141141
"""
142142
)

0 commit comments

Comments
 (0)