Ticket #75 (closed defect: fixed)

Opened 6 years ago

Last modified 5 years ago

migrations seem not to be executed before tests

Reported by: szczepiq@… Owned by: andrew
Priority: critical Milestone:
Component: migrations Version: 0.6-pre
Keywords: Cc:


See attached simple application.

Steps to reproduce:

  1. migrate
  2. test

Expected tests to pass because one of the migrations inserts single 'Topic' object. This topic object is visible if I do ' shell' but it is not in db when I do ' test'.

It seems tests trigger ordinary 'syncdb' instead of 'migrate'. Or am I not understanding how it should work?

Attachments (38.7 KB) - added by szczepiq@… 6 years ago.

Change History

Changed 6 years ago by szczepiq@…

comment:1 Changed 5 years ago by andrew

  • Status changed from new to closed
  • Resolution set to fixed

Argh, I missed this ticket, many apologies. We changed the test runner to not use migrations by default back in 0.4; however, we seem to have forgotten to provide an option to turn it back on.

Thus, as of [148], if you define SOUTH_TESTS_MIGRATE = True in the settings, South will run migrations before tests, not a full syncdb.


Add a comment

Modify Ticket

as closed

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.