(tmp_path: Path)
| 313 | |
| 314 | |
| 315 | def test_resolve_package_path(tmp_path: Path) -> None: |
| 316 | pkg = tmp_path / "pkg1" |
| 317 | pkg.mkdir() |
| 318 | (pkg / "__init__.py").touch() |
| 319 | (pkg / "subdir").mkdir() |
| 320 | (pkg / "subdir/__init__.py").touch() |
| 321 | assert resolve_package_path(pkg) == pkg |
| 322 | assert resolve_package_path(pkg.joinpath("subdir", "__init__.py")) == pkg |
| 323 | |
| 324 | |
| 325 | def test_package_unimportable(tmp_path: Path) -> None: |
nothing calls this directly
no test coverage detected