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
71
71
----------------------------------
72
72
73
73
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 `.
78
80
79
81
If you have any ideas about the best API to support multiple databases
80
82
directly in ``pytest-django `` please get in touch, we are interested
81
83
in eventually supporting this but unsure about simply following
82
84
Django's approach.
83
85
86
+ See `https://github.com/pytest-dev/pytest-django/pull/431 ` for an idea /
87
+ discussion to approach this.
84
88
85
89
``--reuse-db `` - reuse the testing database between test runs
86
90
--------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments