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/ref/settings.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docs/ref') diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt index aa8606a08b..315438fee8 100644 --- a/docs/ref/settings.txt +++ b/docs/ref/settings.txt @@ -828,7 +828,9 @@ but for all apps. Default: ``None`` The alias of the database that this database should mirror during -testing. +testing. It depends on transactions and therefore must be used within +:class:`~django.test.TransactionTestCase` instead of +:class:`~django.test.TestCase`. This setting exists to allow for testing of primary/replica (referred to as master/slave by some databases) -- cgit v1.3