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

Function classic_create

lib/cli/tests/test_create_crew.py:2450–2463  ·  view source on GitHub ↗

Run `crewai create crew my_crew --classic` in ``tmp_path`` with ``tmp_path`` as home, so the LiteLLM cache starts cold.

(tmp_path, monkeypatch, runner)

Source from the content-addressed store, hash-verified

2448
2449@pytest.fixture
2450def classic_create(tmp_path, monkeypatch, runner):
2451 """Run `crewai create crew my_crew --classic` in ``tmp_path`` with
2452 ``tmp_path`` as home, so the LiteLLM cache starts cold."""
2453 monkeypatch.chdir(tmp_path)
2454 monkeypatch.setenv("HOME", str(tmp_path))
2455
2456 def run(answers: list[str]):
2457 return runner.invoke(
2458 crewai,
2459 ["create", "crew", "my_crew", "--classic"],
2460 input="".join(f"{answer}\n" for answer in answers),
2461 )
2462
2463 return run
2464
2465
2466def _catalog_unreachable(*_args, **_kwargs):

Calls

no outgoing calls

Tested by

no test coverage detected