1) replace gpt4.1 to gpt5.4, 2) accelerate loading speed
This commit is contained in:
3
tests/test_config.toml
Normal file
3
tests/test_config.toml
Normal file
@ -0,0 +1,3 @@
|
||||
[test]
|
||||
key1 = "value1"
|
||||
key2 = "value2"
|
||||
@ -1,3 +0,0 @@
|
||||
test:
|
||||
key1: value1
|
||||
key2: value2
|
||||
@ -8,7 +8,7 @@ from translator.utils import parse_config
|
||||
|
||||
class TestUtils:
|
||||
def test_parse_config(self) -> None:
|
||||
config = parse_config('tests/test_config.yaml')
|
||||
config = parse_config('tests/test_config.toml')
|
||||
assert isinstance(config, dict)
|
||||
assert 'test' in config
|
||||
assert 'key1' in config['test']
|
||||
|
||||
Reference in New Issue
Block a user