MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_with_non_dir_arg

Method test_with_non_dir_arg

testing/test_config.py:1457–1463  ·  view source on GitHub ↗
(
        self, dirs: Sequence[str], tmp_path: Path, monkeypatch: MonkeyPatch
    )

Source from the content-addressed store, hash-verified

1455
1456 @pytest.mark.parametrize("dirs", ([], ["does-not-exist"], ["a/does-not-exist"]))
1457 def test_with_non_dir_arg(
1458 self, dirs: Sequence[str], tmp_path: Path, monkeypatch: MonkeyPatch
1459 ) -> None:
1460 monkeypatch.chdir(tmp_path)
1461 rootpath, inipath, _ = determine_setup(None, dirs)
1462 assert rootpath == tmp_path
1463 assert inipath is None
1464
1465 def test_with_existing_file_in_subdir(
1466 self, tmp_path: Path, monkeypatch: MonkeyPatch

Callers

nothing calls this directly

Calls 2

determine_setupFunction · 0.90
chdirMethod · 0.45

Tested by

no test coverage detected