test: set allow_client_tags on duplicate-tag merge test

test_add_litellm_data_to_request_duplicate_tags tests the request/key
tag merge when tags overlap. The merge requires caller-supplied tags to
flow through — set allow_client_tags=True on the key so the merge path
stays testable under the new default-deny regime.
This commit is contained in:
user
2026-04-16 22:50:54 +00:00
parent af8d479482
commit 9622864ef2
+3 -2
View File
@@ -842,12 +842,13 @@ async def test_add_litellm_data_to_request_duplicate_tags(
mock_request.headers = {}
mock_request.state = State()
# Setup key with tags in metadata
# Setup key with tags in metadata. Opt into client-supplied tags so the
# request_tags are preserved for the merge under test.
user_api_key_dict = UserAPIKeyAuth(
api_key="test_api_key",
user_id="test_user_id",
org_id="test_org_id",
metadata={"tags": key_tags},
metadata={"tags": key_tags, "allow_client_tags": True},
)
# Setup request data with tags