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

Method test_options

test/mitmproxy/tools/web/test_app.py:404–407  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

402 assert get_json(resp)[0]["level"] == "info"
403
404 def test_options(self):
405 j = get_json(self.fetch("/options"))
406 assert isinstance(j, dict)
407 assert isinstance(j["anticache"], dict)
408
409 def test_option_update(self):
410 assert self.put_json("/options", {"anticache": True}).code == 200

Callers

nothing calls this directly

Calls 2

fetchMethod · 0.95
get_jsonFunction · 0.70

Tested by

no test coverage detected