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

Function classic_create

lib/cli/tests/test_create_crew.py:2517–2530  ·  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

2515
2516@pytest.fixture
2517def classic_create(tmp_path, monkeypatch, runner):
2518 """Run `crewai create crew my_crew --classic` in ``tmp_path`` with
2519 ``tmp_path`` as home, so the LiteLLM cache starts cold."""
2520 monkeypatch.chdir(tmp_path)
2521 monkeypatch.setenv("HOME", str(tmp_path))
2522
2523 def run(answers: list[str]):
2524 return runner.invoke(
2525 crewai,
2526 ["create", "crew", "my_crew", "--classic"],
2527 input="".join(f"{answer}\n" for answer in answers),
2528 )
2529
2530 return run
2531
2532
2533def _catalog_unreachable(*_args, **_kwargs):

Calls

no outgoing calls

Tested by

no test coverage detected