diff options
| author | Aymeric Augustin | 2013-10-22 15:06:16 +0200 | 
|---|---|---|
| committer | Aymeric Augustin | 2013-10-22 15:06:16 +0200 | 
| commit | 75df680f6e0fda6a603e64627a71e187ca117bd6 (patch) | |
| tree | 6704dcc2762367e155fcfd7bf1b76cb5025f8863 /tests | |
| parent | 6768be17c4a9bd151fa90363c559bd15aeb395e7 (diff) | |
| download | django-debug-toolbar-75df680f6e0fda6a603e64627a71e187ca117bd6.tar.bz2 | |
Fix #420 -- Regression in 729d75d.
Thanks Jacob Hesch for the report.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/tests.py | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/tests/tests.py b/tests/tests.py index e015b6e..c430d5c 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -9,6 +9,7 @@ from xml.etree import ElementTree as ET  import django  from django.conf import settings  from django.contrib.auth.models import User +from django.core import management  from django.db import connection, IntegrityError  from django.http import HttpResponse  from django.test import TestCase, RequestFactory @@ -342,3 +343,11 @@ class LoggingPanelTestCase(BaseTestCase):          self.assertEqual(1, len(records))          self.assertEqual(MESSAGE_IF_STRING_REPRESENTATION_INVALID,                           records[0]['message']) + + +class DebugSQLShellTestCase(TestCase): + +    def test_command_exists(self): +        command_name = 'debugsqlshell' +        app_name = management.get_commands()[command_name] +        management.load_command_class(app_name, command_name) | 
