MCPcopy
hub / github.com/django/django / nested_view

Function nested_view

tests/test_client_regress/views.py:68–74  ·  view source on GitHub ↗

A view that uses test client to call another view.

(request)

Source from the content-addressed store, hash-verified

66
67
68def nested_view(request):
69 """
70 A view that uses test client to call another view.
71 """
72 c = Client()
73 c.get("/no_template_view/")
74 return render(request, "base.html", {"nested": "yes"})
75
76
77@login_required

Callers

nothing calls this directly

Calls 3

getMethod · 0.95
ClientClass · 0.90
renderFunction · 0.90

Tested by

no test coverage detected