MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_get_hex_editor

Function test_get_hex_editor

test/mitmproxy/tools/console/test_master.py:26–30  ·  view source on GitHub ↗
(monkeypatch, console)

Source from the content-addressed store, hash-verified

24
25
26def test_get_hex_editor(monkeypatch, console):
27 test_editor = "hexedit"
28 monkeypatch.setattr("shutil.which", lambda x: x == test_editor)
29 editor = console.get_hex_editor()
30 assert editor == test_editor

Callers

nothing calls this directly

Calls 1

get_hex_editorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…