Skip to main content
Glama
test_set_parameter_message_format.py574 B
from unittest.mock import patch from server.juce_bridge import set_parameter def test_set_parameter_message_format(): """Check that Python sends the expected OSC message format.""" with patch("server.juce_bridge.osc_client.send_message") as mock_send: set_parameter("cutoff", 0.75) # We expect exactly one OSC message to be sent mock_send.assert_called_once() # Extract call args (address, [param, value]) addr, args = mock_send.call_args[0] assert addr == "/setParameter" assert args == ["cutoff", 0.75]

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TYLERSFOSTER/MCPSynthController'

If you have feedback or need assistance with the MCP directory API, please join our Discord server