MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_check_args

Function test_check_args

test/mitmproxy/utils/test_arg_check.py:52–58  ·  view source on GitHub ↗
(arg, output)

Source from the content-addressed store, hash-verified

50 ],
51)
52def test_check_args(arg, output):
53 f = io.StringIO()
54 with contextlib.redirect_stdout(f):
55 with mock.patch("sys.argv") as m:
56 m.__getitem__.return_value = arg
57 arg_check.check()
58 assert f.getvalue().strip() == output

Callers

nothing calls this directly

Calls 2

checkMethod · 0.80
getvalueMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…