Skip to content

Commit

Permalink
Experimental: do not disable south migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Jul 26, 2014
1 parent e30b451 commit a3edae8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
8 changes: 2 additions & 6 deletions docs/faq.rst
Expand Up @@ -54,12 +54,8 @@ This snippet should do the trick (replace ``yourproject.settings`` and make sure
echo "export DJANGO_SETTINGS_MODULE=yourproject.settings" >> $VIRTUAL_ENV/bin/postactivate


How do South and pytest-django play together?
------------------------------------------------

Django's own syncdb will always be used to create the test database, regardless of whether South is present or not.


How does South and pytest-django play together?
Djangos own syncdb will always be used to create the test database, regardless of wheter South is present or not.
Does this work with the pytest-xdist plugin?
--------------------------------------------

Expand Down
6 changes: 0 additions & 6 deletions pytest_django/fixtures.py
Expand Up @@ -28,7 +28,6 @@ def _django_db_setup(request,
skip_if_no_django()

from .compat import setup_databases, teardown_databases
from django.core import management

# xdist
if hasattr(request.config, 'slaveinput'):
Expand All @@ -38,11 +37,6 @@ def _django_db_setup(request,

monkey_patch_creation_for_db_suffix(db_suffix)

# Disable south's syncdb command
commands = management.get_commands()
if commands['syncdb'] == 'south':
management._commands['syncdb'] = 'django.core'

with _django_cursor_wrapper:
# Monkey patch Django's setup code to support database re-use
if request.config.getvalue('reuse_db'):
Expand Down

0 comments on commit a3edae8

Please sign in to comment.