Skip to content

Commit f1bc024

Browse files
cewingblueyed
authored andcommitted
doc: improve docs for testing multiple DBs
Enhanced by committer. Closes #591.
1 parent f65abf1 commit f1bc024

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docs/database.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,20 @@ Tests requiring multiple databases
7171
----------------------------------
7272

7373
Currently ``pytest-django`` does not specifically support Django's
74-
multi-database support. You can however use normal Django
75-
``TestCase`` instances to use it's `multi_db
76-
<https://docs.djangoproject.com/en/1.9/topics/testing/advanced/#tests-and-multiple-databases>`_
77-
support.
74+
multi-database support.
75+
76+
You can however use normal :class:`~django.test.TestCase` instances to use its
77+
:ref:`django:topics-testing-advanced-multidb` support.
78+
In particular, if your database is configured for replication, be sure to read
79+
about :ref:`django:topics-testing-primaryreplica`.
7880

7981
If you have any ideas about the best API to support multiple databases
8082
directly in ``pytest-django`` please get in touch, we are interested
8183
in eventually supporting this but unsure about simply following
8284
Django's approach.
8385

86+
See `https://github.com/pytest-dev/pytest-django/pull/431` for an idea /
87+
discussion to approach this.
8488

8589
``--reuse-db`` - reuse the testing database between test runs
8690
--------------------------------------------------------------

0 commit comments

Comments
 (0)