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

Function test_write_error

test/mitmproxy/addons/test_savehar.py:24–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22
23
24def test_write_error():
25 s = SaveHar()
26
27 with pytest.raises(FileNotFoundError):
28 s.export_har([], types.Path("unknown_dir/testing_flow.har"))
29
30
31@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

export_harMethod · 0.95
SaveHarClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…