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

Method test_configure

test/mitmproxy/addons/test_maplocal.py:135–142  ·  view source on GitHub ↗
(self, tmpdir)

Source from the content-addressed store, hash-verified

133
134class TestMapLocal:
135 def test_configure(self, tmpdir):
136 ml = MapLocal()
137 with taddons.context(ml) as tctx:
138 tctx.configure(ml, map_local=["/foo/bar/" + str(tmpdir)])
139 with pytest.raises(Exception, match="Invalid regular expression"):
140 tctx.configure(ml, map_local=["/foo/+/" + str(tmpdir)])
141 with pytest.raises(Exception, match="Invalid file path"):
142 tctx.configure(ml, map_local=["/foo/.+/three"])
143
144 def test_simple(self, tmpdir):
145 ml = MapLocal()

Callers

nothing calls this directly

Calls 3

MapLocalClass · 0.90
contextMethod · 0.80
configureMethod · 0.45

Tested by

no test coverage detected