|
15 | 15 | from django.contrib.auth.models import User
|
16 | 16 | from django.core import mail
|
17 | 17 | from django.core.handlers.wsgi import WSGIRequest, WSGIHandler
|
| 18 | +from django.core.management import call_command |
18 | 19 | from django.core.urlresolvers import reverse
|
19 | 20 | from django.core.signals import got_request_exception
|
20 | 21 | from django.core.servers import basehttp
|
21 | 22 | from django.test.client import Client
|
22 | 23 | from django.test import TestCase
|
23 | 24 | from django.template import TemplateSyntaxError
|
24 | 25 | from django.utils.encoding import smart_unicode
|
25 |
| -from django.utils import simplejson |
26 | 26 |
|
27 | 27 | from sentry import conf
|
28 | 28 | from sentry.helpers import transform
|
@@ -368,8 +368,6 @@ def testSignals(self):
|
368 | 368 | self.assertEquals(last.message, smart_unicode(exc))
|
369 | 369 |
|
370 | 370 | def testSignalsWithoutRequest(self):
|
371 |
| - request = RF.get("/", REMOTE_ADDR="127.0.0.1:8000") |
372 |
| - |
373 | 371 | try:
|
374 | 372 | Message.objects.get(id=999999999)
|
375 | 373 | except Message.DoesNotExist, exc:
|
@@ -858,7 +856,6 @@ def tearDown(self):
|
858 | 856 | conf.CLIENT = self._client
|
859 | 857 |
|
860 | 858 | def test_get_client(self):
|
861 |
| - from sentry.client.base import SentryClient |
862 | 859 | from sentry.client.log import LoggingSentryClient
|
863 | 860 | self.assertEquals(get_client().__class__, SentryClient)
|
864 | 861 | self.assertEquals(get_client(), get_client())
|
@@ -891,7 +888,6 @@ def emit(self, record):
|
891 | 888 | self.assertEquals(_foo[''].class_name, 'Exception')
|
892 | 889 |
|
893 | 890 | def test_celery_client(self):
|
894 |
| - from sentry.client.base import SentryClient |
895 | 891 | from sentry.client.celery import CelerySentryClient
|
896 | 892 | self.assertEquals(get_client().__class__, SentryClient)
|
897 | 893 | self.assertEquals(get_client(), get_client())
|
|
0 commit comments