mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Renamed AppCache to Apps.
Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
This commit is contained in:
parent
e9e522a8e7
commit
1716b7ce5a
92 changed files with 491 additions and 487 deletions
|
@ -5,7 +5,7 @@ import os
|
|||
import sys
|
||||
import unittest
|
||||
|
||||
from django.apps import app_cache
|
||||
from django.apps import apps
|
||||
from django.core.management import ManagementUtility
|
||||
from django.utils.six import StringIO
|
||||
|
||||
|
@ -85,6 +85,6 @@ class BashCompletionTests(unittest.TestCase):
|
|||
self._user_input('django-admin.py sqlall a')
|
||||
output = self._run_autocomplete()
|
||||
a_labels = sorted(app_config.label
|
||||
for app_config in app_cache.get_app_configs()
|
||||
for app_config in apps.get_app_configs()
|
||||
if app_config.label.startswith('a'))
|
||||
self.assertEqual(output, a_labels)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue