checkpoint: massive refactor
This commit is contained in:
@@ -9,11 +9,10 @@ sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
|
||||
import mcp_client
|
||||
|
||||
def test_mcp_perf_tool_retrieval():
|
||||
# Test that the MCP tool can call performance_monitor metrics
|
||||
mock_metrics = {"fps": 60, "last_frame_time_ms": 16.6}
|
||||
|
||||
# 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
|
||||
# Test that the MCP tool can call performance_monitor metrics
|
||||
mock_metrics = {"fps": 60, "last_frame_time_ms": 16.6}
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user