MCPcopy Create free account
hub / github.com/CopilotKit/OpenGenerativeUI / test_main_uses_build_model

Function test_main_uses_build_model

apps/agent/tests/test_model.py:51–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49
50
51def test_main_uses_build_model():
52 import ast
53 from pathlib import Path
54
55 main_src = Path(__file__).parent.parent / "main.py"
56 tree = ast.parse(main_src.read_text())
57 names = {n.id for n in ast.walk(tree) if isinstance(n, ast.Name)}
58 assert "build_model" in names
59 assert "ChatOpenAI" not in main_src.read_text()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected