1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Fixed #23718 -- Doc'd that test mirrors require TransactionTestCase.

Co-authored-by: Christian Bundy <me@christianbundy.com>
This commit is contained in:
sarahboyce
2023-01-15 19:50:36 +01:00
committed by Mariusz Felisiak
parent 05bcd5baaf
commit 0fbdb9784d
2 changed files with 6 additions and 2 deletions

View File

@@ -241,7 +241,9 @@ will *not* be created. Instead the connection to ``replica``
will be redirected to point at ``default``. As a result, writes to
``default`` will appear on ``replica`` -- but because they are actually
the same database, not because there is data replication between the
two databases.
two databases. As this depends on transactions, the tests must use
:class:`~django.test.TransactionTestCase` instead of
:class:`~django.test.TestCase`.
.. _topics-testing-creation-dependencies: