MCPcopy
hub / github.com/django/django / test_no_exception

Method test_no_exception

tests/view_tests/tests/test_debug.py:1332–1336  ·  view source on GitHub ↗

An exception report can be generated for just a request

(self)

Source from the content-addressed store, hash-verified

1330 self.assertIn("Request data not supplied", text)
1331
1332 def test_no_exception(self):
1333 "An exception report can be generated for just a request"
1334 request = self.rf.get("/test_view/")
1335 reporter = ExceptionReporter(request, None, None, None)
1336 reporter.get_traceback_text()
1337
1338 def test_request_and_message(self):
1339 "A message can be provided in addition to a request"

Callers

nothing calls this directly

Calls 3

get_traceback_textMethod · 0.95
ExceptionReporterClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected