mirror of
https://github.com/django/django.git
synced 2025-07-20 01:29:11 +00:00
[1.9.x] Made MakeMigrationsTests call proper parent method
Backport of 00dbd02f7ecbd369eddcb00ef138e452f84b4ae3 from master
This commit is contained in:
parent
6200a5e526
commit
0325483e37
@ -466,14 +466,14 @@ class MakeMigrationsTests(MigrationTestBase):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
super(MigrationTestBase, self).setUp()
|
super(MakeMigrationsTests, self).setUp()
|
||||||
self._old_models = apps.app_configs['migrations'].models.copy()
|
self._old_models = apps.app_configs['migrations'].models.copy()
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
apps.app_configs['migrations'].models = self._old_models
|
apps.app_configs['migrations'].models = self._old_models
|
||||||
apps.all_models['migrations'] = self._old_models
|
apps.all_models['migrations'] = self._old_models
|
||||||
apps.clear_cache()
|
apps.clear_cache()
|
||||||
super(MigrationTestBase, self).tearDown()
|
super(MakeMigrationsTests, self).tearDown()
|
||||||
|
|
||||||
def test_files_content(self):
|
def test_files_content(self):
|
||||||
self.assertTableNotExists("migrations_unicodemodel")
|
self.assertTableNotExists("migrations_unicodemodel")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user