Skip to content

Commit 69c5358

Browse files
committed
db fixture: fixed docstring
1 parent c79cd9b commit 69c5358

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pytest_django/fixtures.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,12 @@ def _disable_native_migrations():
146146
def db(request, _django_db_setup, _django_cursor_wrapper):
147147
"""Require a django test database
148148
149-
This database will be setup with the default fixtures and will
150-
have the transaction management disabled. At the end of the test
151-
the transaction will be rolled back to undo any changes to the
152-
database. This is more limited than the ``transactional_db``
153-
resource but faster.
149+
This database will be setup with the default fixtures and will have
150+
the transaction management disabled. At the end of the test the outer
151+
transaction that wraps the test itself will be rolled back to undo any
152+
changes to the database (in case the backend supports transactions).
153+
This is more limited than the ``transactional_db`` resource but
154+
faster.
154155
155156
If both this and ``transactional_db`` are requested then the
156157
database setup will behave as only ``transactional_db`` was

0 commit comments

Comments
 (0)