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)
| 2448 | |
| 2449 | @pytest.fixture |
| 2450 | def 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 | |
| 2466 | def _catalog_unreachable(*_args, **_kwargs): |
no outgoing calls
no test coverage detected