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

Function raises

lib/cli/tests/test_run_usage.py:1556–1560  ·  view source on GitHub ↗
(error: Exception)

Source from the content-addressed store, hash-verified

1554 from crewai.project import crew_loader
1555
1556 def raises(error: Exception) -> Any:
1557 def raise_it(*args: Any, **kwargs: Any) -> None:
1558 raise error
1559
1560 return raise_it
1561
1562 if where == "as_it_loads":
1563 error = a_key_missing_as_an_older_crewai_loads(monkeypatch)

Calls

no outgoing calls

Tested by

no test coverage detected