MCPcopy
hub / github.com/pytest-dev/pytest / test_with_existing_file_in_subdir

Method test_with_existing_file_in_subdir

testing/test_config.py:2121–2136  ·  view source on GitHub ↗
(
        self, tmp_path: Path, monkeypatch: MonkeyPatch
    )

Source from the content-addressed store, hash-verified

2119 assert inipath is None
2120
2121 def test_with_existing_file_in_subdir(
2122 self, tmp_path: Path, monkeypatch: MonkeyPatch
2123 ) -> None:
2124 a = tmp_path / "a"
2125 a.mkdir()
2126 (a / "exists").touch()
2127 monkeypatch.chdir(tmp_path)
2128 rootpath, inipath, *_ = determine_setup(
2129 inifile=None,
2130 override_ini=None,
2131 args=["a/exist"],
2132 rootdir_cmd_arg=None,
2133 invocation_dir=Path.cwd(),
2134 )
2135 assert rootpath == tmp_path
2136 assert inipath is None
2137
2138 def test_with_config_also_in_parent_directory(
2139 self, tmp_path: Path, monkeypatch: MonkeyPatch

Callers

nothing calls this directly

Calls 3

determine_setupFunction · 0.90
mkdirMethod · 0.45
chdirMethod · 0.45

Tested by

no test coverage detected