File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -71,16 +71,20 @@ Tests requiring multiple databases
7171----------------------------------
7272
7373Currently ``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
7981If you have any ideas about the best API to support multiple databases
8082directly in ``pytest-django `` please get in touch, we are interested
8183in eventually supporting this but unsure about simply following
8284Django'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--------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments