Skip to content

Commit f5f0004

Browse files
fixed tests
1 parent e123cae commit f5f0004

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_litellm/integrations/datadog/test_datadog_llm_observability.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ def create_standard_logging_payload_with_spend_metrics() -> StandardLoggingPaylo
10601060

10611061

10621062
@pytest.mark.asyncio
1063-
async def test_datadog_llm_obs_spend_metrics():
1063+
async def test_datadog_llm_obs_spend_metrics(mock_env_vars):
10641064
"""Test that budget metrics are properly extracted and logged"""
10651065
datadog_llm_obs_logger = DataDogLLMObsLogger()
10661066

@@ -1086,7 +1086,7 @@ async def test_datadog_llm_obs_spend_metrics():
10861086

10871087

10881088
@pytest.mark.asyncio
1089-
async def test_datadog_llm_obs_spend_metrics_no_budget():
1089+
async def test_datadog_llm_obs_spend_metrics_no_budget(mock_env_vars):
10901090
"""Test that spend metrics work when no budget is set"""
10911091
datadog_llm_obs_logger = DataDogLLMObsLogger()
10921092

@@ -1108,7 +1108,7 @@ async def test_datadog_llm_obs_spend_metrics_no_budget():
11081108

11091109

11101110
@pytest.mark.asyncio
1111-
async def test_spend_metrics_in_datadog_payload():
1111+
async def test_spend_metrics_in_datadog_payload(mock_env_vars):
11121112
"""Test that spend metrics are correctly included in DataDog LLM Observability payloads"""
11131113
datadog_llm_obs_logger = DataDogLLMObsLogger()
11141114

0 commit comments

Comments
 (0)