Skip to content

Commit f767560

Browse files
committed
Merge pull request pytest-dev#213 from julen/db-fixture
db fixture: fixed docstring
2 parents e2dec4f + 69c5358 commit f767560

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
@@ -150,11 +150,12 @@ def _disable_native_migrations():
150150
def db(request, _django_db_setup, _django_cursor_wrapper):
151151
"""Require a django test database
152152
153-
This database will be setup with the default fixtures and will
154-
have the transaction management disabled. At the end of the test
155-
the transaction will be rolled back to undo any changes to the
156-
database. This is more limited than the ``transactional_db``
157-
resource but faster.
153+
This database will be setup with the default fixtures and will have
154+
the transaction management disabled. At the end of the test the outer
155+
transaction that wraps the test itself will be rolled back to undo any
156+
changes to the database (in case the backend supports transactions).
157+
This is more limited than the ``transactional_db`` resource but
158+
faster.
158159
159160
If both this and ``transactional_db`` are requested then the
160161
database setup will behave as only ``transactional_db`` was

0 commit comments

Comments
 (0)