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 0d9c7b1 commit d57e0a0Copy full SHA for d57e0a0
tests/conftest.py
@@ -34,6 +34,12 @@ def _marker_apifun(extra_settings='',
34
}
35
36
37
+@pytest.fixture
38
+def testdir(testdir, monkeypatch):
39
+ monkeypatch.delenv('PYTEST_ADDOPTS', raising=False)
40
+ return testdir
41
+
42
43
@pytest.fixture(scope='function')
44
def django_testdir(request, testdir, monkeypatch):
45
marker = request.node.get_closest_marker('django_project')
@@ -128,8 +134,6 @@ def create_app_file(code, filename):
128
134
testdir.create_app_file = create_app_file
129
135
testdir.project_root = project_root
130
136
131
- monkeypatch.delenv('PYTEST_ADDOPTS', raising=False)
132
-
133
137
testdir.makeini("""
138
[pytest]
139
addopts = --strict
0 commit comments