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

Function test_resolve_package_path

testing/test_pathlib.py:434–441  ·  view source on GitHub ↗
(tmp_path: Path)

Source from the content-addressed store, hash-verified

432
433
434def test_resolve_package_path(tmp_path: Path) -> None:
435 pkg = tmp_path / "pkg1"
436 pkg.mkdir()
437 (pkg / "__init__.py").touch()
438 (pkg / "subdir").mkdir()
439 (pkg / "subdir/__init__.py").touch()
440 assert resolve_package_path(pkg) == pkg
441 assert resolve_package_path(pkg / "subdir/__init__.py") == pkg
442
443
444def test_package_unimportable(tmp_path: Path) -> None:

Callers

nothing calls this directly

Calls 2

resolve_package_pathFunction · 0.90
mkdirMethod · 0.45

Tested by

no test coverage detected