feat: Complete code integration of modules (#18)
The complete code integration is done. Co-authored-by: Sagnik <sagnik7896@gmail.com> Reviewed-on: #18
This commit was merged in pull request #18.
This commit is contained in:
20
backend/tests/test_nemoclaw_runtime.py
Normal file
20
backend/tests/test_nemoclaw_runtime.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from backend.services.mcp_registry import mcp_registry
|
||||
from backend.services.nemoclaw_runtime import nemoclaw_runtime
|
||||
|
||||
|
||||
def test_nemoclaw_runtime_builds_workflow_dispatch() -> None:
|
||||
dispatch = nemoclaw_runtime.build_workflow_dispatch(
|
||||
prompt="Build a marketing-ready Oracle canvas",
|
||||
tenant_id="tenant_velocity",
|
||||
actor_role="sales_director",
|
||||
component_templates=["tpl_pipeline_board_v2"],
|
||||
)
|
||||
assert dispatch["runtime"] == "python_native_nemoclaw"
|
||||
assert dispatch["workflow"] == "oracle_canvas_generation"
|
||||
|
||||
|
||||
def test_mcp_registry_lists_root_python_tools() -> None:
|
||||
tools = mcp_registry.list_tools()
|
||||
names = {tool["name"] for tool in tools}
|
||||
assert "crm_search" in names
|
||||
assert "external_search" in names
|
||||
Reference in New Issue
Block a user