(tdata)
| 480 | |
| 481 | |
| 482 | def 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( |