forked from phoenix/litellm-mirror
(fix) config testing
This commit is contained in:
parent
b7281825d3
commit
9b3a0c69f5
1 changed files with 4 additions and 3 deletions
|
@ -173,17 +173,18 @@ def test_load_router_config():
|
|||
try:
|
||||
print("testing reading config")
|
||||
# this is a basic config.yaml with only a model
|
||||
result = load_router_config(router=None, config_file_path="example_config_yaml/simple_config.yaml")
|
||||
filepath = os.path.dirname(os.path.abspath(__file__))
|
||||
result = load_router_config(router=None, config_file_path=f"{filepath}/example_config_yaml/simple_config.yaml")
|
||||
print(result)
|
||||
assert len(result[1]) == 1
|
||||
|
||||
# this is a load balancing config yaml
|
||||
result = load_router_config(router=None, config_file_path="example_config_yaml/azure_config.yaml")
|
||||
result = load_router_config(router=None, config_file_path=f"{filepath}/example_config_yaml/azure_config.yaml")
|
||||
print(result)
|
||||
assert len(result[1]) == 2
|
||||
|
||||
# config with general settings - custom callbacks
|
||||
result = load_router_config(router=None, config_file_path="example_config_yaml/azure_config.yaml")
|
||||
result = load_router_config(router=None, config_file_path=f"{filepath}/example_config_yaml/azure_config.yaml")
|
||||
print(result)
|
||||
assert len(result[1]) == 2
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue