On Sat, Feb 25, 2012 at 2:13 AM, Anssi Kääriäinen <anssi.kaariai...@thl.fi> wrote: > On Feb 25, 9:24 am, Jeremy Dunck <jdu...@gmail.com> wrote: >> I have a master and a replica. In test, the TEST_MIRROR on the >> replica points to master. I make writes to master, then read from >> replica, then assert some numbers. >> ... > I think you really should use a transactional test case. The reason is > that before you do a commit, your writes really should not be visible. > Hiding this in testing could lead to hiding bugs.
Of course that is the case, but here the transaction is artificial - part of the runner, not of the code under test. All that using TransactionTestCase does is side-step the pending transaction, not model the code under test more accurately. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.