MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_no_browser

Function test_no_browser

test/mitmproxy/addons/test_browser.py:30–37  ·  view source on GitHub ↗
(caplog)

Source from the content-addressed store, hash-verified

28
29
30async def test_no_browser(caplog):
31 caplog.set_level("INFO")
32 with mock.patch("shutil.which") as which:
33 which.return_value = False
34
35 b = browser.Browser()
36 b.start()
37 assert "platform is not supported" in caplog.text
38
39
40async def test_find_executable_cmd():

Callers

nothing calls this directly

Calls 2

startMethod · 0.95
set_levelMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…