1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Updated syncdb -> migrate in tests.

This commit is contained in:
Tim Graham
2013-09-03 11:51:34 -04:00
parent 8f7f8bf688
commit 3db66b1d65
13 changed files with 46 additions and 57 deletions

View File

@@ -38,9 +38,9 @@ class SwappableModelTests(TestCase):
Permission.objects.filter(content_type__app_label='swappable_models').delete()
ContentType.objects.filter(app_label='swappable_models').delete()
# Re-run syncdb. This will re-build the permissions and content types.
# Re-run migrate. This will re-build the permissions and content types.
new_io = StringIO()
management.call_command('syncdb', load_initial_data=False, interactive=False, stdout=new_io)
management.call_command('migrate', load_initial_data=False, interactive=False, stdout=new_io)
# Check that content types and permissions exist for the swapped model,
# but not for the swappable model.