-
Notifications
You must be signed in to change notification settings - Fork 347
Handle south migrations #129
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
Conversation
Looks good. Just having |
Unfortunately it's not fine. With The initial problem is with (e.g.)
The following tests then fail with:
|
I've pushed a new commit, which fixes this and also fixes handling of |
This requires to monkey-patch `south.hacks.django_1_0.SkipFlushCommand`, which has a bug that prevents any initial data to be installed. South issue: http://south.aeracode.org/ticket/1395#comment:3 Fixes pytest-dev#22 Django code reference for 1.6, from django-1.6.x/django/db/backends/creation.py(339)create_test_db(): # Report syncdb messages at one level lower than that requested. # This ensures we don't get flooded with messages during testing # (unless you really ask to be flooded) call_command('syncdb', verbosity=max(verbosity - 1, 0), interactive=False, database=self.connection.alias, load_initial_data=False) # We need to then do a flush to ensure that any data installed by # custom SQL has been removed. The only test data should come from # test fixtures, or autogenerated from post_syncdb triggers. # This has the side effect of loading initial data (which was # intentionally skipped in the syncdb). call_command('flush', verbosity=max(verbosity - 1, 0), interactive=False, database=self.connection.alias)
@pelme I am skipping the South related tests for Python 3.4 and Django >= 1.7, because South appears to cause trouble with both. |
Thank you so much for this! |
Ref: #128