Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed ticket_24498 - Remove migration db config while running unit tests #4344

Closed

Conversation

mmartincevic
Copy link

While running tests it should ignore migration database settings if specified.

@@ -80,6 +80,10 @@ def handle(self, *test_labels, **options):
from django.conf import settings
from django.test.utils import get_runner

# Don't run migrations for tests
if settings.DATABASES.get('migration') is not None:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not aware of Django setting a key called 'migration' in settings.DATABASES?

@timgraham timgraham closed this Mar 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants