MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / test_render_priority

Function test_render_priority

test/mitmproxy/contentviews/test__view_json.py:28–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26
27
28def test_render_priority():
29 assert json_view.render_priority(b"data", Metadata(content_type="application/json"))
30 assert json_view.render_priority(
31 b"data", Metadata(content_type="application/json-rpc")
32 )
33 assert json_view.render_priority(
34 b"data", Metadata(content_type="application/vnd.api+json")
35 )
36 assert json_view.render_priority(
37 b"data", Metadata(content_type="application/acme+json")
38 )
39 assert not json_view.render_priority(b"data", Metadata(content_type="text/plain"))
40 assert not json_view.render_priority(b"", Metadata(content_type="application/json"))

Callers

nothing calls this directly

Calls 2

MetadataClass · 0.90
render_priorityMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…