We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8c14aa commit f953d50Copy full SHA for f953d50
tests/conftest.py
@@ -126,13 +126,11 @@ def create_app_file(code, filename):
126
127
monkeypatch.delenv('PYTEST_ADDOPTS', raising=False)
128
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
+ testdir.makeini("""
+ [pytest]
+ addopts = --strict
+ console_output_style=classic
+ """)
136
137
return testdir
138
0 commit comments