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 79b7754 commit 39ad360Copy full SHA for 39ad360
docs/database.rst
@@ -333,7 +333,7 @@ Put this into ``conftest.py``::
333
conn.close()
334
335
336
- @pytest.yield_fixture(scope='session')
+ @pytest.fixture(scope='session')
337
def django_db_setup():
338
from django.conf import settings
339
pytest_django/fixtures.py
@@ -355,7 +355,7 @@ def finalize(self):
355
del self._to_restore[:]
356
357
358
-@pytest.yield_fixture()
+@pytest.fixture()
359
def settings():
360
"""A Django settings object which restores changes after the testrun"""
361
skip_if_no_django()
0 commit comments