MCPcopy Create free account
hub / github.com/django/django / test_get_context_errors

Method test_get_context_errors

tests/forms_tests/tests/test_forms.py:5049–5053  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5047 self.assertEqual(form.renderer, custom)
5048
5049 def test_get_context_errors(self):
5050 custom = CustomRenderer()
5051 form = Form(renderer=custom)
5052 context = form.get_context()
5053 self.assertEqual(context["errors"].renderer, custom)
5054
5055 def test_boundfield_fallback(self):
5056 class RendererWithoutBoundFieldClassAttribute:

Callers

nothing calls this directly

Calls 3

FormClass · 0.90
CustomRendererClass · 0.70
get_contextMethod · 0.45

Tested by

no test coverage detected