mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-13 03:59:12 +00:00
test: use raw regex for excluded_services match
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
3c9df1b445
commit
5dc107a2f5
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ from litellm.types.utils import CAPTURE_MESSAGE_CONTENT_VALUES, CaptureMessageCo
|
|||
|
||||
@pytest.mark.parametrize("value", ["", " ", "auth", "none,redis", "redis,", ",postgres"])
|
||||
def test_invalid_excluded_services_values_are_rejected(value: str) -> None:
|
||||
with pytest.raises(ValueError, match="Invalid excluded_services.*none"):
|
||||
with pytest.raises(ValueError, match=r"Invalid excluded_services.*none"):
|
||||
validate_excluded_services_value(value)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue