only test for our own missing migrations
-import cStringIO
+try:
+ from cStringIO import StringIO
+except ImportError:
+ from io import StringIO
from django.test import TestCase
from django.core.management import call_command
@@ -7,8 +10,8 @@ from django.core.management import call_command
class MissingMigrationTest(TestCase):
def test_for_missing_migrations(self):
- out = cStringIO.StringIO()
+ out = StringIO()
- call_command('makemigrations', '--dry-run',
+ call_command('makemigrations', '--dry-run', 'cmsplugin_cascade',
verbocity=3, interactive=False, stdout=out)
self.assertEquals(out.getvalue(), 'No changes detected\n')
