(tmp_path: Path)
| 442 | |
| 443 | |
| 444 | def test_missing_package_dir_errors(tmp_path: Path) -> None: |
| 445 | # pyproject says name=my_crew but we only create src/other_pkg/ |
| 446 | (tmp_path / "pyproject.toml").write_text(_make_pyproject(name="my_crew")) |
| 447 | (tmp_path / "uv.lock").write_text("") |
| 448 | (tmp_path / "src" / "other_pkg").mkdir(parents=True) |
| 449 | v = _run_without_import_check(tmp_path) |
| 450 | codes = _codes(v) |
| 451 | assert "missing_package_dir" in codes |
| 452 | finding = next(r for r in v.results if r.code == "missing_package_dir") |
| 453 | assert "other_pkg" in finding.hint |
| 454 | |
| 455 | |
| 456 | def test_egg_info_only_errors_with_targeted_hint(tmp_path: Path) -> None: |
nothing calls this directly
no test coverage detected