MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_view_graphql

Function test_view_graphql

test/mitmproxy/contentviews/test__view_graphql.py:37–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35
36
37def test_view_graphql():
38 assert graphql.prettify(
39 b"""{"query": "query P { \\n }"}""", Metadata(content_type="application/json")
40 )
41 assert graphql.prettify(
42 b"""[{"query": "query P { \\n }"}]""", Metadata(content_type="application/json")
43 )
44 with pytest.raises(ValueError):
45 assert graphql.prettify(b'"valid json"', Metadata())

Callers

nothing calls this directly

Calls 2

MetadataClass · 0.90
prettifyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…