Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed some flake8 warnings

  • Loading branch information...
commit c348550d35276008018a42c002251b0e2fe9cfe1 1 parent e4b012f
@alex alex authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 tests/view_tests/tests/test_debug.py
View
12 tests/view_tests/tests/test_debug.py
@@ -282,17 +282,17 @@ def test_no_exception(self):
"An exception report can be generated for just a request"
request = self.rf.get('/test_view/')
reporter = ExceptionReporter(request, None, None, None)
- text = reporter.get_traceback_text()
+ reporter.get_traceback_text()
def test_request_and_message(self):
"A message can be provided in addition to a request"
request = self.rf.get('/test_view/')
reporter = ExceptionReporter(request, None, "I'm a little teapot", None)
- text = reporter.get_traceback_text()
+ reporter.get_traceback_text()
def test_message_only(self):
reporter = ExceptionReporter(None, None, "I'm a little teapot", None)
- text = reporter.get_traceback_text()
+ reporter.get_traceback_text()
class ExceptionReportTestMixin(object):
@@ -376,7 +376,7 @@ def verify_unsafe_email(self, view, check_for_POST_params=True):
with self.settings(ADMINS=(('Admin', 'admin@fattie-breakie.com'),)):
mail.outbox = [] # Empty outbox
request = self.rf.post('/some_url/', self.breakfast_data)
- response = view(request)
+ view(request)
self.assertEqual(len(mail.outbox), 1)
email = mail.outbox[0]
@@ -409,7 +409,7 @@ def verify_safe_email(self, view, check_for_POST_params=True):
with self.settings(ADMINS=(('Admin', 'admin@fattie-breakie.com'),)):
mail.outbox = [] # Empty outbox
request = self.rf.post('/some_url/', self.breakfast_data)
- response = view(request)
+ view(request)
self.assertEqual(len(mail.outbox), 1)
email = mail.outbox[0]
@@ -449,7 +449,7 @@ def verify_paranoid_email(self, view):
with self.settings(ADMINS=(('Admin', 'admin@fattie-breakie.com'),)):
mail.outbox = [] # Empty outbox
request = self.rf.post('/some_url/', self.breakfast_data)
- response = view(request)
+ view(request)
self.assertEqual(len(mail.outbox), 1)
email = mail.outbox[0]
# Frames vars are never shown in plain text email reports.
Please sign in to comment.
Something went wrong with that request. Please try again.