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

Method test_single_dir

testing/test_findpaths.py:186–187  ·  view source on GitHub ↗
(self, tmp_path: Path)

Source from the content-addressed store, hash-verified

184 assert get_common_ancestor(cwd, [fn1, fn2.parent]) == tmp_path / "foo"
185
186 def test_single_dir(self, tmp_path: Path) -> None:
187 assert get_common_ancestor(Path.cwd(), [tmp_path]) == tmp_path
188
189 def test_single_file(self, tmp_path: Path) -> None:
190 fn = tmp_path / "foo.py"

Callers

nothing calls this directly

Calls 1

get_common_ancestorFunction · 0.90

Tested by

no test coverage detected