MCPcopy
hub / github.com/django/django / instrumented_test_render

Function instrumented_test_render

django/test/utils.py:107–113  ·  view source on GitHub ↗

An instrumented Template render method, providing a signal that can be intercepted by the test Client.

(self, context)

Source from the content-addressed store, hash-verified

105
106
107def instrumented_test_render(self, context):
108 """
109 An instrumented Template render method, providing a signal that can be
110 intercepted by the test Client.
111 """
112 template_rendered.send(sender=self, template=self, context=context)
113 return self.nodelist.render(context)
114
115
116class _TestState:

Callers

nothing calls this directly

Calls 2

sendMethod · 0.45
renderMethod · 0.45

Tested by

no test coverage detected