MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_load_paths

Function test_load_paths

test/mitmproxy/test_optmanager.py:482–492  ·  view source on GitHub ↗
(tdata)

Source from the content-addressed store, hash-verified

480
481
482def test_load_paths(tdata):
483 opts = TS()
484 conf_path = tdata.path("mitmproxy/data/test_config.yml")
485 optmanager.load_paths(opts, conf_path)
486 assert opts.scripts == [
487 str(Path.home().absolute().joinpath("abc")),
488 str(Path(conf_path).parent.joinpath("abc")),
489 str(Path(conf_path).parent.joinpath("../abc")),
490 str(Path("/abc").absolute()),
491 ]
492 assert opts.not_scripts == ["~/abc", "abc", "../abc", "/abc"]
493
494
495@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

TSClass · 0.85
PathClass · 0.85
pathMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…