File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff 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.
6359Does this work with the pytest-xdist plugin?
6460--------------------------------------------
6561
Original file line number Diff line number Diff 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' ):
You can’t perform that action at this time.
0 commit comments