MCPcopy
hub / github.com/django/django / __exit__

Method __exit__

django/test/testcases.py:167–171  ·  view source on GitHub ↗
(self, exc_type, exc_value, traceback)

Source from the content-addressed store, hash-verified

165 return self
166
167 def __exit__(self, exc_type, exc_value, traceback):
168 template_rendered.disconnect(self.on_template_render)
169 if exc_type is not None:
170 return
171 self.test()
172
173
174class _AssertTemplateNotUsedContext(_AssertTemplateUsedContext):

Callers

nothing calls this directly

Calls 2

testMethod · 0.95
disconnectMethod · 0.45

Tested by

no test coverage detected