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)
| 2515 | |
| 2516 | @pytest.fixture |
| 2517 | def 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 | |
| 2533 | def _catalog_unreachable(*_args, **_kwargs): |
no outgoing calls
no test coverage detected