MCPcopy
hub / github.com/django/django / __init__

Method __init__

django/test/client.py:384–399  ·  view source on GitHub ↗
(
        self,
        *,
        json_encoder=DjangoJSONEncoder,
        headers=None,
        query_params=None,
        **defaults,
    )

Source from the content-addressed store, hash-verified

382 """
383
384 def __init__(
385 self,
386 *,
387 json_encoder=DjangoJSONEncoder,
388 headers=None,
389 query_params=None,
390 **defaults,
391 ):
392 self.json_encoder = json_encoder
393 self.defaults = defaults
394 self.cookies = SimpleCookie()
395 self.errors = BytesIO()
396 if headers:
397 self.defaults.update(HttpHeaders.to_wsgi_names(headers))
398 if query_params:
399 self.defaults["QUERY_STRING"] = urlencode(query_params, doseq=True)
400
401 def _base_environ(self, **request):
402 """

Callers

nothing calls this directly

Calls 3

urlencodeFunction · 0.90
to_wsgi_namesMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected