Test getting timeout by TimeoutType enum.
(self)
| 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): |
nothing calls this directly
no test coverage detected