Made MakeMigrationsTests call proper parent method

This commit is contained in:
Attila Tovt 2016-04-02 08:22:55 +03:00 committed by Markus Holtermann
parent a637ed879d
commit 00dbd02f7e
1 changed files with 2 additions and 2 deletions

View File

@ -469,14 +469,14 @@ class MakeMigrationsTests(MigrationTestBase):
"""
def setUp(self):
super(MigrationTestBase, self).setUp()
super(MakeMigrationsTests, self).setUp()
self._old_models = apps.app_configs['migrations'].models.copy()
def tearDown(self):
apps.app_configs['migrations'].models = self._old_models
apps.all_models['migrations'] = self._old_models
apps.clear_cache()
super(MigrationTestBase, self).tearDown()
super(MakeMigrationsTests, self).tearDown()
def test_files_content(self):
self.assertTableNotExists("migrations_unicodemodel")