1919import yaml
2020
2121from datacustomcode .llm_gateway .default import DefaultLLMGateway
22- from datacustomcode .llm_gateway_config import (
23- LLMGatewayConfig ,
24- LLMGatewayObjectConfig ,
25- )
22+ from datacustomcode .llm_gateway_config import LLMGatewayConfig , LLMGatewayObjectConfig
2623
2724
2825class TestLLMGatewayConfigUpdate :
@@ -61,18 +58,14 @@ def test_update_respects_force_flag(self):
6158
6259 config1 .update (config2 )
6360
64- assert (
65- config1 .llm_gateway_config .type_config_name == "ForcedImplementation"
66- )
61+ assert config1 .llm_gateway_config .type_config_name == "ForcedImplementation"
6762 assert config1 .llm_gateway_config .options == {"forced" : True }
6863 assert config1 .llm_gateway_config .force is True
6964
7065
7166class TestLLMGatewayConfigLoad :
7267 def test_load_from_yaml_file (self ):
73- config_data = {
74- "llm_gateway_config" : {"type_config_name" : "DefaultLLMGateway" }
75- }
68+ config_data = {"llm_gateway_config" : {"type_config_name" : "DefaultLLMGateway" }}
7669
7770 with tempfile .NamedTemporaryFile (mode = "w" , suffix = ".yaml" , delete = False ) as f :
7871 yaml .dump (config_data , f )
@@ -83,9 +76,7 @@ def test_load_from_yaml_file(self):
8376 config .load (temp_file )
8477
8578 assert config .llm_gateway_config is not None
86- assert (
87- config .llm_gateway_config .type_config_name == "DefaultLLMGateway"
88- )
79+ assert config .llm_gateway_config .type_config_name == "DefaultLLMGateway"
8980 llm_gateway = config .llm_gateway_config .to_object ()
9081 assert llm_gateway is not None
9182 assert isinstance (llm_gateway , DefaultLLMGateway )
0 commit comments