Skip to content

Commit f953d50

Browse files
authored
tests: use ini with django_testdir to use --strict and classic output (#634)
1 parent a8c14aa commit f953d50

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

tests/conftest.py

+5-7
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,11 @@ def create_app_file(code, filename):
126126

127127
monkeypatch.delenv('PYTEST_ADDOPTS', raising=False)
128128

129-
# Monkeypatch runpytest_subprocess to include --strict always.
130-
orig = testdir.runpytest_subprocess
131-
132-
def runpytest_subprocess(*args, **kwargs):
133-
args = ('--strict',) + args
134-
return orig(*args, **kwargs)
135-
testdir.runpytest_subprocess = runpytest_subprocess
129+
testdir.makeini("""
130+
[pytest]
131+
addopts = --strict
132+
console_output_style=classic
133+
""")
136134

137135
return testdir
138136

0 commit comments

Comments
 (0)