Skip to content

Commit b1e94f3

Browse files
committed
fix: removed unneccessary meddling with integration setup in test fixture
1 parent d0e0751 commit b1e94f3

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

tests/integrations/litellm/test_litellm.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ def clear_litellm_cache():
4141
The LiteLLM integration uses setup_once() which only runs once per Python process.
4242
This fixture ensures the integration is properly re-initialized for each test.
4343
"""
44-
# Import here to avoid circular dependencies
45-
from sentry_sdk.integrations import _processed_integrations, _installed_integrations
4644

4745
# Stop all existing mocks
4846
mock.patch.stopall()
@@ -54,10 +52,6 @@ def clear_litellm_cache():
5452
):
5553
litellm.in_memory_llm_clients_cache.flush_cache()
5654

57-
# Remove litellm from integration tracking so setup_once() can run again
58-
_processed_integrations.discard("litellm")
59-
_installed_integrations.discard("litellm")
60-
6155
yield
6256

6357
# Clean up after test as well
@@ -68,10 +62,6 @@ def clear_litellm_cache():
6862
):
6963
litellm.in_memory_llm_clients_cache.flush_cache()
7064

71-
# Remove again for next test
72-
_processed_integrations.discard("litellm")
73-
_installed_integrations.discard("litellm")
74-
7565

7666
# Mock response objects
7767
class MockMessage:

0 commit comments

Comments
 (0)