MCPcopy
hub / github.com/django/django / _response

Method _response

tests/template_tests/test_response.py:263–266  ·  view source on GitHub ↗
(self, template="foo", *args, **kwargs)

Source from the content-addressed store, hash-verified

261 factory = RequestFactory()
262
263 def _response(self, template="foo", *args, **kwargs):
264 self._request = self.factory.get("/")
265 template = engines["django"].from_string(template)
266 return TemplateResponse(self._request, template, *args, **kwargs)
267
268 def test_render(self):
269 response = self._response("{{ foo }}{{ processors }}").render()

Callers 4

test_renderMethod · 0.95
test_kwargsMethod · 0.95

Calls 3

TemplateResponseClass · 0.90
getMethod · 0.45
from_stringMethod · 0.45

Tested by

no test coverage detected