You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am seeing this issue as well with Django 1.5 when I was not seeing the issue with Django 1.4. It appears that from 1.4 to 1.5 Django would establish a connection to the databases ahead of calling the setup_databases method of the NoseTestSuiteRunner which would have the effect that the test for _should_create_database would come back with information about the main database and not the test database since the preexisting connection was created against the main DB.
The fix for this is easy and is really just adding a call to connection.close() right before doing the _should_create_database call in NoseTestSuiteRunner.setup_databases()
I will submit a patch for this.
enoren
pushed a commit
to enoren/django-nose
that referenced
this issue
Jan 6, 2014
(cross-posted here: http://stackoverflow.com/questions/17279806/is-there-a-way-to-tell-django-nose-to-handle-multiple-databases)
In settings.py I have:
This works fine (but slowly, of course):
./manage.py test myapp
But this fails:
But tblMfg is in UMC, not OST_DEV_1.
We currently use 'using' manually for the objects that are in UMC:
Is there a way to tell django-nose to treat these two databases separately?
The text was updated successfully, but these errors were encountered: