If you read the section on this: https://docs.djangoproject.com/en/dev/topics/testing/overview/#test-case-serialized-rollback the emulation is only performed if you set serialized_rollback = True on the TestCase (as not all tests need this and it slows tests down by 3x, so we decided to make it opt-in not opt-out). Did you turn that on and it's still failing?
Andrew On Sat, Jun 21, 2014 at 5:07 PM, Rafał Pitoń <[email protected]> wrote: > Ticket claims this is fixed, but as I've moved my project to Django 1.7, > I've seen story from OP's mail repeat. My migrations create tables, then > populate them with data. Then tests that read this data from DB blurp with > "DoesNotExist". > > > Any initial data loaded in migrations will only be available in TestCase > > tests > and not in TransactionTestCase tests, and additionally only on backends > where transactions are supported (the most important exception being > MyISAM). > > My tests inherit from TestCase and are ran against @PostgreSQL 9.3 which > according to doc should support migrations data. > > -- > You received this message because you are subscribed to the Google Groups > "Django developers" 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]. > Visit this group at http://groups.google.com/group/django-developers. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/7e071bc2-c563-439a-9f8f-88e24d150945%40googlegroups.com > <https://groups.google.com/d/msgid/django-developers/7e071bc2-c563-439a-9f8f-88e24d150945%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django developers" 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]. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAFwN1uocbMcOjvDr6JwqHNbXZ3qYEMqRoPKE6ee9Kd3wrh1T0w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
