(tmp_path: Path)
| 432 | |
| 433 | |
| 434 | def 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 | |
| 444 | def test_package_unimportable(tmp_path: Path) -> None: |
nothing calls this directly
no test coverage detected