mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-05 02:41:56 +00:00
fix(tests): wrap pytest.raises match in re.escape to satisfy RUF043
This commit is contained in:
parent
0764a0a923
commit
14d81858db
1 changed files with 3 additions and 1 deletions
|
|
@ -1,3 +1,5 @@
|
|||
import re
|
||||
|
||||
import pytest
|
||||
|
||||
import litellm
|
||||
|
|
@ -67,7 +69,7 @@ def test_azure_config_uses_azure_capability_map_for_effort() -> None:
|
|||
the OpenAI lookup would wrongly reject an effort Azure supports.
|
||||
"""
|
||||
openai_config = OpenAIResponsesAPIConfig()
|
||||
with pytest.raises(litellm.UnsupportedParamsError, match="reasoning.effort=minimal"):
|
||||
with pytest.raises(litellm.UnsupportedParamsError, match=re.escape("reasoning.effort=minimal")):
|
||||
openai_config.map_openai_params(
|
||||
response_api_optional_params={"reasoning": {"effort": "minimal"}},
|
||||
model="gpt-5.4",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue