I've been using a nose test runner for vim called qtpy and when my tests are simple unittest.TestCase all is well but the moment I need a database it's clear the nose test runner does not syncdb before it runs.
Does a test runner exist that will syncdb before each run? If not how are people getting around this issue when they run django tests that are more integration like?
if it matters, I am using a mocked settings file so my DJANGO_SETTINGS_MODULE is setup. In addition the sqlite db file is created and available to the test runner. But when nose runs the "django" test it fails to syncdb and results in something like this
23 return Database.Cursor.execute(self, query, params)
24 DatabaseError: no such table: foo_bar
25 -------------------- >> begin captured logging << --------------------
26 django.db.backends: DEBUG: (0.001) CREATE TABLE ROLLBACK_TEST (X INT); args=()
27 django.db.backends: DEBUG: (0.000) INSERT INTO ROLLBACK_TEST (X) VALUES (8); ar...
28 django.db.backends: DEBUG: (0.000) SELECT COUNT(X) FROM ROLLBACK_TEST; args=()
29 django.db.backends: DEBUG: (0.001) DROP TABLE ROLLBACK_TEST; args=()
30 django.db.backends: DEBUG: (0.000) INSERT INTO "foo_bar" ("first", "last" ...
31 --------------------- >> end captured logging << -