File tree 2 files changed +2
-12
lines changed
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
54
54
echo "export DJANGO_SETTINGS_MODULE=yourproject.settings" >> $VIRTUAL_ENV/bin/postactivate
55
55
56
56
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.
63
59
Does this work with the pytest-xdist plugin?
64
60
--------------------------------------------
65
61
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ def _django_db_setup(request,
28
28
skip_if_no_django ()
29
29
30
30
from .compat import setup_databases , teardown_databases
31
- from django .core import management
32
31
33
32
# xdist
34
33
if hasattr (request .config , 'slaveinput' ):
@@ -38,11 +37,6 @@ def _django_db_setup(request,
38
37
39
38
monkey_patch_creation_for_db_suffix (db_suffix )
40
39
41
- # Disable south's syncdb command
42
- commands = management .get_commands ()
43
- if commands ['syncdb' ] == 'south' :
44
- management ._commands ['syncdb' ] = 'django.core'
45
-
46
40
with _django_cursor_wrapper :
47
41
# Monkey patch Django's setup code to support database re-use
48
42
if request .config .getvalue ('reuse_db' ):
You can’t perform that action at this time.
0 commit comments