#23718: TEST_MIRROR setting doesn't work as expected (and has no tests)
-----------------------------------+------------------------------------
     Reporter:  coagulant          |                    Owner:  nobody
         Type:  Bug                |                   Status:  new
    Component:  Testing framework  |                  Version:  1.7
     Severity:  Normal             |               Resolution:
     Keywords:  replica testing    |             Triage Stage:  Accepted
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+------------------------------------

Comment (by yellottyellott):

 I just ran into this as well. Based on the documentation, I expected to
 set

 {{{
 DATABASES = {
     'default': {
         ...
     },
     'replica': {
         ...
         'TEST_MIRROR': 'default',
         # 'TEST': {'MIRROR': 'default'},  # I tried this too.
     }
 }
 }}}

 and have my tests read from replica and write to default, which should be
 the same database and act as if I had just one database defined as
 `default`.

--
Ticket URL: <https://code.djangoproject.com/ticket/23718#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.fbebfb0a636557198fe86dd68cb9f09c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to