@gladys,
While that didn't solve my original question, it did solve another
related problem. Before, I had issue with migrations failing since
they depended on pre-existing data (which did not exist in the blank
testing database). But if I added an initial_data.json fixture, it
gets run for
I'm not sure if this is what you need, but if the problem is with the
migrations not being run, you can specify a setting in your
settings.py to use syncdb when running tests.
#settings.py
SOUTH_TESTS_MIGRATE = False # make test database created using syncdb
rather than migrations
Goodluck.
--
I have an app that I'm starting to write tests for. The app uses
south for all migrations and mysql for the db.
I wrote some tests and also created an initial_data.json fixture to
provide some default data. If I run "python manage.py test", the
database is created via sqlite, the tests are run,
3 matches
Mail list logo