With Django 1.4.5, I'm using django-nose 1.1.0.
I have two settings files with no diff.
-> % diff local_settings.py test_settings/sqlite.py
I run the tests with:
-> % python manage.py test foo --settings=local_settings
and I get
Ran 91 tests in 5.273s
OK (SKIP=6)
Running the same identical settings from the different location
-> % python manage.py test foo --settings=test_settings.sqlite
The tests bail without all running:
Ran 43 tests in 1.230s
FAILED (errors=1)
I get a traceback, DatabaseError: no such table: django_content_type
The traceback comes through the loading of the urls. Something that gets instantiated there calls ContentType.objects.get_for_model(self.model)
. How is this difference possible when the settings are identical?
My manage.py file is generic:
#!/usr/bin/env python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()