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

Method test_single_file

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

Source from the content-addressed store, hash-verified

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"
191 fn.touch()
192 assert get_common_ancestor(Path.cwd(), [fn]) == tmp_path
193
194
195def test_get_dirs_from_args(tmp_path):

Callers

nothing calls this directly

Calls 1

get_common_ancestorFunction · 0.90

Tested by

no test coverage detected