From 00beee9d4ea70d8a13238873986577d8a844ed5c Mon Sep 17 00:00:00 2001 From: sinksilk <785976238@qq.com> Date: Fri, 25 Sep 2026 01:09:56 +0800 Subject: [PATCH] test(azure): drop redundant content-filter mapping docstrings Greptile flagged the new test docstrings as repeating clear method names Signed-off-by: sinksilk <785976238@qq.com> --- tests/unit/llms/azure/test_azure_exception_mapping.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/unit/llms/azure/test_azure_exception_mapping.py b/tests/unit/llms/azure/test_azure_exception_mapping.py index 63f76786869..b4dafbe7a6e 100644 --- a/tests/unit/llms/azure/test_azure_exception_mapping.py +++ b/tests/unit/llms/azure/test_azure_exception_mapping.py @@ -404,8 +404,6 @@ class TestAzureExceptionMapping: assert "docs.litellm.ai" in error.message def test_azure_prompt_content_filter_maps_to_content_policy_violation(self): - """Prompt-filter 400s use code=content_filter and innererror.ContentFiltered (#42247).""" - mock_exception = Exception("Bad request") mock_exception.body = { "error": { @@ -449,8 +447,6 @@ class TestAzureExceptionMapping: assert e.provider_specific_fields["inner_error"]["code"] == "ContentFiltered" def test_azure_content_filtered_innererror_without_top_code(self): - """innererror.ContentFiltered is a prompt-filter alias even when the top-level code is generic.""" - mock_exception = Exception("Bad request") mock_exception.body = { "error": { @@ -476,7 +472,6 @@ class TestAzureExceptionMapping: assert e.provider_specific_fields["innererror"]["code"] == "ContentFiltered" def test_azure_ordinary_invalid_request_stays_bad_request(self): - """Ordinary Azure 400s must stay BadRequestError so content_policy_fallbacks do not fire.""" from litellm.exceptions import BadRequestError mock_exception = Exception(