(tmp_path: Path)
| 314 | |
| 315 | |
| 316 | def test_missing_package_dir_errors(tmp_path: Path) -> None: |
| 317 | # pyproject says name=my_crew but we only create src/other_pkg/ |
| 318 | (tmp_path / "pyproject.toml").write_text(_make_pyproject(name="my_crew")) |
| 319 | (tmp_path / "uv.lock").write_text("") |
| 320 | (tmp_path / "src" / "other_pkg").mkdir(parents=True) |
| 321 | v = _run_without_import_check(tmp_path) |
| 322 | codes = _codes(v) |
| 323 | assert "missing_package_dir" in codes |
| 324 | finding = next(r for r in v.results if r.code == "missing_package_dir") |
| 325 | assert "other_pkg" in finding.hint |
| 326 | |
| 327 | |
| 328 | def test_egg_info_only_errors_with_targeted_hint(tmp_path: Path) -> None: |
nothing calls this directly
no test coverage detected