mirror of
https://github.com/django/django.git
synced 2025-08-14 15:50:41 +00:00
[1.9.x] Made MakeMigrationsTests call proper parent method
Backport of 00dbd02f7e
from master
This commit is contained in:
parent
6200a5e526
commit
0325483e37
1 changed files with 2 additions and 2 deletions
|
@ -466,14 +466,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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue