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

Function _run_without_import_check

lib/cli/tests/deploy/test_validate.py:105–111  ·  view source on GitHub ↗

Run validation with the subprocess-based import check stubbed out; the classifier is exercised directly in its own tests below.

(root: Path)

Source from the content-addressed store, hash-verified

103
104
105def _run_without_import_check(root: Path) -> DeployValidator:
106 """Run validation with the subprocess-based import check stubbed out;
107 the classifier is exercised directly in its own tests below."""
108 with patch.object(DeployValidator, "_check_module_imports", lambda self: None):
109 v = DeployValidator(project_root=root)
110 v.run()
111 return v
112
113
114def _scaffold_json_crew(root: Path, *, task_agent: str = "researcher") -> None:

Calls 2

runMethod · 0.95
DeployValidatorClass · 0.90

Tested by

no test coverage detected