style(otel): remove redundant case comments in unit tests

This commit is contained in:
Xayar145 2026-08-22 10:48:24 +08:00
parent a39b4071d2
commit 2d0802f5ec

View file

@ -223,7 +223,6 @@ class TestOpentelemetryUnitTests(BaseLoggingCallbackTest):
mock_histogram = MagicMock()
otel_integration._operation_duration_histogram = mock_histogram
# Case 1: Default legacy mode
kwargs = {
"litellm_params": {"custom_llm_provider": "anthropic"},
"model": "claude-3-5-sonnet",
@ -234,7 +233,6 @@ class TestOpentelemetryUnitTests(BaseLoggingCallbackTest):
call_attrs = mock_histogram.record.call_args[1]["attributes"]
assert call_attrs.get("gen_ai.system") == "anthropic"
# Case 2: Semconv experimental mode
otel_integration.config.semconv_stability_opt_in = {
OTELSemconvCategory.GEN_AI_LATEST_EXPERIMENTAL
}