From 0fbdb9784da915fce5dcc1fe82bac9b4785749e5 Mon Sep 17 00:00:00 2001 From: sarahboyce Date: Sun, 15 Jan 2023 19:50:36 +0100 Subject: Fixed #23718 -- Doc'd that test mirrors require TransactionTestCase. Co-authored-by: Christian Bundy --- docs/topics/testing/advanced.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docs/topics/testing/advanced.txt') 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: -- cgit v1.3