MCPcopy Create free account
hub / github.com/IBM/mcp-cli / test_get_timeout_by_enum

Method test_get_timeout_by_enum

tests/config/test_config_models.py:44–49  ·  view source on GitHub ↗

Test getting timeout by TimeoutType enum.

(self)

Source from the content-addressed store, hash-verified

42 assert config.tool_execution == 120.0
43
44 def test_get_timeout_by_enum(self):
45 """Test getting timeout by TimeoutType enum."""
46 config = TimeoutConfig(streaming_chunk=45.0, tool_execution=90.0)
47
48 assert config.get(TimeoutType.STREAMING_CHUNK) == 45.0
49 assert config.get(TimeoutType.TOOL_EXECUTION) == 90.0
50
51 @pytest.mark.asyncio
52 async def test_get_async(self):

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
TimeoutConfigClass · 0.90

Tested by

no test coverage detected