mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-21 02:23:59 +00:00
Fix test
This commit is contained in:
@@ -35,6 +35,15 @@ def client_no_auth(fake_env_vars):
|
||||
config_fp = os.path.join(filepath, "test_configs", "test_config_no_auth.yaml")
|
||||
asyncio.run(initialize(config=config_fp, debug=True))
|
||||
|
||||
# Passthrough of api_base in the JSON body is rejected by default
|
||||
# (pre_db_read_auth_checks / is_request_body_safe). This test asserts
|
||||
# api_base reaches aocr().
|
||||
from litellm.proxy import proxy_server as _ps
|
||||
|
||||
if _ps.general_settings is None:
|
||||
_ps.general_settings = {}
|
||||
_ps.general_settings["allow_client_side_credentials"] = True
|
||||
|
||||
try:
|
||||
yield TestClient(app)
|
||||
finally:
|
||||
|
||||
Reference in New Issue
Block a user