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

Function _write_project

lib/cli/tests/test_update_crew.py:26–29  ·  view source on GitHub ↗

Create a minimal Poetry-style project with a lock file in ``tmp_path``.

(tmp_path: Path)

Source from the content-addressed store, hash-verified

24
25
26def _write_project(tmp_path: Path) -> None:
27 """Create a minimal Poetry-style project with a lock file in ``tmp_path``."""
28 (tmp_path / "pyproject.toml").write_text(_POETRY_PYPROJECT, encoding="utf-8")
29 (tmp_path / "poetry.lock").write_text("current lock\n", encoding="utf-8")
30
31
32def test_migrate_pyproject_backs_up_lock_file(

Calls

no outgoing calls

Tested by

no test coverage detected