diff options
author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-12-23 10:37:34 +0100 |
---|---|---|
committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-12-23 21:37:56 +0100 |
commit | da16bb30ff238aa4d59b4186d92ef5429d8d0045 (patch) | |
tree | dfda0b750aa0d3a71c4751edcb7b86f3517e2b3f /tests/proxy_model_inheritance | |
parent | 5241763c81b6afe1c0327ff7eb0d75c643f24ce0 (diff) | |
download | django-da16bb30ff238aa4d59b4186d92ef5429d8d0045.tar.gz |
Dropped AppCache._empty, _with_app and _without_app.
It's now easier to achieve the same effect with modify_settings or
override_settings.
Diffstat (limited to 'tests/proxy_model_inheritance')
-rw-r--r-- | tests/proxy_model_inheritance/tests.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/proxy_model_inheritance/tests.py b/tests/proxy_model_inheritance/tests.py index c0b564746d..06b47ff82d 100644 --- a/tests/proxy_model_inheritance/tests.py +++ b/tests/proxy_model_inheritance/tests.py @@ -3,7 +3,6 @@ from __future__ import unicode_literals import os import sys -from django.apps import app_cache from django.core.management import call_command from django.test import TestCase, TransactionTestCase from django.utils._os import upath @@ -28,7 +27,7 @@ class ProxyModelInheritanceTests(TransactionTestCase): sys.path = self.old_sys_path def test_table_exists(self): - with app_cache._with_app('app1'), app_cache._with_app('app2'): + with self.modify_settings(INSTALLED_APPS={'append': ['app1', 'app2']}): call_command('migrate', verbosity=0) from .app1.models import ProxyModel from .app2.models import NiceModel |