MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / test_save_static

Function test_save_static

test/mitmproxy/tools/web/test_static_viewer.py:13–18  ·  view source on GitHub ↗
(tmpdir)

Source from the content-addressed store, hash-verified

11
12
13def test_save_static(tmpdir):
14 tmpdir.mkdir("static")
15 static_viewer.save_static(tmpdir)
16 assert len(tmpdir.listdir()) == 2
17 assert tmpdir.join("index.html").check(file=1)
18 assert tmpdir.join("static/static.js").read() == "MITMWEB_STATIC = true;"
19
20
21def test_save_filter_help(tmpdir):

Callers

nothing calls this directly

Calls 3

checkMethod · 0.80
joinMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…