MCPcopy Create free account
hub / github.com/crewAIInc/crewAI / test_missing_package_dir_errors

Function test_missing_package_dir_errors

lib/cli/tests/deploy/test_validate.py:288–297  ·  view source on GitHub ↗
(tmp_path: Path)

Source from the content-addressed store, hash-verified

286
287
288def 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
300def test_egg_info_only_errors_with_targeted_hint(tmp_path: Path) -> None:

Callers

nothing calls this directly

Calls 3

_make_pyprojectFunction · 0.85
_codesFunction · 0.85

Tested by

no test coverage detected