Create a base MCPConfig.
(self, tmp_path)
| 30 | |
| 31 | @pytest.fixture |
| 32 | def base_config(self, tmp_path): |
| 33 | """Create a base MCPConfig.""" |
| 34 | config_data = { |
| 35 | "defaultProvider": "openai", |
| 36 | "defaultModel": "gpt-4", |
| 37 | "timeouts": { |
| 38 | "streaming_chunk": 45.0, |
| 39 | "streaming_global": 300.0, |
| 40 | }, |
| 41 | } |
| 42 | config_file = tmp_path / "config.json" |
| 43 | config_file.write_text(json.dumps(config_data)) |
| 44 | return MCPConfig.load_sync(config_file) |
| 45 | |
| 46 | def test_runtime_config_creation(self, base_config): |
| 47 | """Test creating RuntimeConfig.""" |