File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
tests/integrations/litellm Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff 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
7767class MockMessage :
You can’t perform that action at this time.
0 commit comments