Skip to content

Commit aae2094

Browse files
author
beyondgeeks
committed
Experimental: do not disable south migrations
Ref: pytest-dev/pytest-django#128
1 parent 5a05df4 commit aae2094

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

docs/faq.rst

+2-6
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,8 @@ This snippet should do the trick (replace ``yourproject.settings`` and make sure
5454
echo "export DJANGO_SETTINGS_MODULE=yourproject.settings" >> $VIRTUAL_ENV/bin/postactivate
5555

5656

57-
How do South and pytest-django play together?
58-
------------------------------------------------
59-
60-
Django's own syncdb will always be used to create the test database, regardless of whether South is present or not.
61-
62-
57+
How does South and pytest-django play together?
58+
Djangos own syncdb will always be used to create the test database, regardless of wheter South is present or not.
6359
Does this work with the pytest-xdist plugin?
6460
--------------------------------------------
6561

pytest_django/fixtures.py

-6
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ def _django_db_setup(request,
2828
skip_if_no_django()
2929

3030
from .compat import setup_databases, teardown_databases
31-
from django.core import management
3231

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

3938
monkey_patch_creation_for_db_suffix(db_suffix)
4039

41-
# Disable south's syncdb command
42-
commands = management.get_commands()
43-
if commands['syncdb'] == 'south':
44-
management._commands['syncdb'] = 'django.core'
45-
4640
with _django_cursor_wrapper:
4741
# Monkey patch Django's setup code to support database re-use
4842
if request.config.getvalue('reuse_db'):

0 commit comments

Comments
 (0)