mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
test(rust): escape the dot in the metadata.user_id match pattern
This commit is contained in:
parent
09509f702e
commit
92713aca11
1 changed files with 1 additions and 1 deletions
|
|
@ -231,7 +231,7 @@ async def test_non_string_metadata_user_id_is_rejected_before_the_provider_call(
|
|||
) -> None:
|
||||
messages_server.expected_requests = 0
|
||||
|
||||
with pytest.raises(litellm.BadRequestError, match="metadata.user_id must be a string"):
|
||||
with pytest.raises(litellm.BadRequestError, match=r"metadata\.user_id must be a string"):
|
||||
await litellm.anthropic.messages.acreate(**arguments(messages_server, metadata={"user_id": 123}))
|
||||
|
||||
assert messages_server.requests == []
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue