fix(conductor): Apply review suggestions for track 'live_gui_testing_20260223'

This commit is contained in:
2026-02-23 16:49:36 -05:00
parent 2da1ef38af
commit 075d760721
3 changed files with 18 additions and 18 deletions

View File

@@ -10,10 +10,10 @@ import mcp_client
def test_mcp_perf_tool_retrieval():
# Test that the MCP tool can call performance_monitor metrics
mock_app = MagicMock()
mock_app.perf_monitor.get_metrics.return_value = {"fps": 60}
mock_metrics = {"fps": 60, "last_frame_time_ms": 16.6}
# Simulate tool call
with patch('mcp_client.get_app_instance', return_value=mock_app):
# We assume there's a tool named 'get_performance_metrics' in the MCP client
pass
# Simulate tool call by patching the callback
with patch('mcp_client.perf_monitor_callback', return_value=mock_metrics):
result = mcp_client.get_ui_performance()
assert "60" in result
assert "16.6" in result