mirror of
https://github.com/django/django.git
synced 2025-10-16 21:37:33 +00:00
Replaced sqlall in some bash_completion/admin_scripts tests.
sqlall will be removed in Django 1.9, so now's a good time to remove its usage where it's not important.
This commit is contained in:
parent
0821b3d53c
commit
75bbcfa332
3 changed files with 90 additions and 94 deletions
|
@ -58,13 +58,13 @@ class BashCompletionTests(unittest.TestCase):
|
|||
|
||||
def test_django_admin_py(self):
|
||||
"django_admin.py will autocomplete option flags"
|
||||
self._user_input('django-admin sqlall --verb')
|
||||
self._user_input('django-admin sqlmigrate --verb')
|
||||
output = self._run_autocomplete()
|
||||
self.assertEqual(output, ['--verbosity='])
|
||||
|
||||
def test_manage_py(self):
|
||||
"manage.py will autocomplete option flags"
|
||||
self._user_input('manage.py sqlall --verb')
|
||||
self._user_input('manage.py sqlmigrate --verb')
|
||||
output = self._run_autocomplete()
|
||||
self.assertEqual(output, ['--verbosity='])
|
||||
|
||||
|
@ -101,7 +101,7 @@ class BashCompletionTests(unittest.TestCase):
|
|||
|
||||
def test_app_completion(self):
|
||||
"Application names will be autocompleted for an AppCommand"
|
||||
self._user_input('django-admin sqlall a')
|
||||
self._user_input('django-admin sqlmigrate a')
|
||||
output = self._run_autocomplete()
|
||||
a_labels = sorted(app_config.label
|
||||
for app_config in apps.get_app_configs()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue