(tmp_path: Path)
| 286 | |
| 287 | |
| 288 | def test_missing_package_dir_errors(tmp_path: Path) -> None: |
| 289 | # pyproject says name=my_crew but we only create src/other_pkg/ |
| 290 | (tmp_path / "pyproject.toml").write_text(_make_pyproject(name="my_crew")) |
| 291 | (tmp_path / "uv.lock").write_text("") |
| 292 | (tmp_path / "src" / "other_pkg").mkdir(parents=True) |
| 293 | v = _run_without_import_check(tmp_path) |
| 294 | codes = _codes(v) |
| 295 | assert "missing_package_dir" in codes |
| 296 | finding = next(r for r in v.results if r.code == "missing_package_dir") |
| 297 | assert "other_pkg" in finding.hint |
| 298 | |
| 299 | |
| 300 | def test_egg_info_only_errors_with_targeted_hint(tmp_path: Path) -> None: |
nothing calls this directly
no test coverage detected