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

Method get_timeout

tests/chat/test_streaming_handler.py:776–783  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

774 from mcp_cli.config.enums import TimeoutType
775
776 def get_timeout(t):
777 if t == TimeoutType.STREAMING_FIRST_CHUNK:
778 return first_chunk
779 elif t == TimeoutType.STREAMING_CHUNK:
780 return chunk
781 elif t == TimeoutType.STREAMING_GLOBAL:
782 return global_t
783 return 30.0
784
785 rc = MagicMock()
786 rc.get_timeout = MagicMock(side_effect=get_timeout)

Calls

no outgoing calls

Tested by

no test coverage detected