Test getting timeout from environment variable.
(self, base_config, monkeypatch)
| 84 | assert TimeoutType.STREAMING_CHUNK in rc._timeout_cache |
| 85 | |
| 86 | def test_get_timeout_from_env(self, base_config, monkeypatch): |
| 87 | """Test getting timeout from environment variable.""" |
| 88 | monkeypatch.setenv("MCP_STREAMING_CHUNK_TIMEOUT", "99.0") |
| 89 | |
| 90 | rc = RuntimeConfig(base_config) |
| 91 | timeout = rc.get_timeout(TimeoutType.STREAMING_CHUNK) |
| 92 | assert timeout == 99.0 |
| 93 | |
| 94 | def test_get_timeout_from_tool_timeout_env(self, base_config, monkeypatch): |
| 95 | """Test getting timeout from MCP_TOOL_TIMEOUT env var.""" |
nothing calls this directly
no test coverage detected