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

Method test_with_existing_file_in_subdir

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

Source from the content-addressed store, hash-verified

1463 assert inipath is None
1464
1465 def test_with_existing_file_in_subdir(
1466 self, tmp_path: Path, monkeypatch: MonkeyPatch
1467 ) -> None:
1468 a = tmp_path / "a"
1469 a.mkdir()
1470 (a / "exists").touch()
1471 monkeypatch.chdir(tmp_path)
1472 rootpath, inipath, _ = determine_setup(None, ["a/exist"])
1473 assert rootpath == tmp_path
1474 assert inipath is None
1475
1476 def test_with_config_also_in_parent_directory(
1477 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