I’ve got a Django project, to which I added the South app about halfway through to make database migrations easier.
I use the Django unit test framework in a couple of limited places in the project, meaning I don’t run the tests regularly. I recently wrote some new tests for a new part of the code, and attempted to run them. I got the following error:
django.db.utils.DatabaseError: no such table: auth_permission
The traceback mentioned some South files (e.g. /Library/Python/2.7/site-packages/south/management/commands/test.py). Could South be fouling up the test runner?
Possibly — doubtless I’ve done something wrong somewhere, but South’s documentation mentions possible issues here:
I added
SOUTH_TESTS_MIGRATE = Falseto my settings.py file, and my tests ran fine again.However, my tests don’t currently involve the database, so I might have to revisit this.