summaryrefslogtreecommitdiff
path: root/docs/topics
diff options
context:
space:
mode:
authorsarahboyce <sarahvboyce95@gmail.com>2023-01-15 19:50:36 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-01-16 09:31:34 +0100
commit0fbdb9784da915fce5dcc1fe82bac9b4785749e5 (patch)
tree3b617bfc48a32aae381b48be271f4eadeab7777e /docs/topics
parent05bcd5baafc0a5783923e32d2b7e2b7fff7d152a (diff)
Fixed #23718 -- Doc'd that test mirrors require TransactionTestCase.
Co-authored-by: Christian Bundy <me@christianbundy.com>
Diffstat (limited to 'docs/topics')
-rw-r--r--docs/topics/testing/advanced.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/topics/testing/advanced.txt b/docs/topics/testing/advanced.txt
index 2cae3325a6..fafc4e0bbc 100644
--- a/docs/topics/testing/advanced.txt
+++ b/docs/topics/testing/advanced.txt
@@ -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: