mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-01 22:22:22 +00:00
Update tests/test_litellm/test_router_silent_experiment.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
parent
01ed0e0ebf
commit
dc6f68b431
@@ -81,6 +81,9 @@ def test_get_silent_experiment_kwargs():
|
||||
assert "is_silent_experiment" not in kwargs["metadata"]
|
||||
assert kwargs["metadata"]["litellm_parent_otel_span"] is mock_span
|
||||
assert kwargs["metadata"]["user_api_key_auth"] is mock_auth
|
||||
# Shallow copy must preserve user_api_key_auth so the silent experiment
|
||||
# can attribute billing / spend logs to the correct key/team.
|
||||
assert result["metadata"]["user_api_key_auth"] is mock_auth
|
||||
|
||||
|
||||
def test_silent_experiment_completion_direct():
|
||||
|
||||
Reference in New Issue
Block a user