1010
1111
1212@patch ("sentry_sdk.integrations.unleash.UnleashClient" , MockUnleashClient )
13- def test_is_enabled (sentry_init , capture_events , reset_integration ):
13+ def test_is_enabled (sentry_init , capture_events , uninstall_integration ):
1414 client = MockUnleashClient ()
15- reset_integration (UnleashIntegration . identifier )
15+ uninstall_integration (UnleashIntegration )
1616 sentry_init (integrations = [UnleashIntegration ()])
1717
1818 client .is_enabled ("hello" )
@@ -33,9 +33,9 @@ def test_is_enabled(sentry_init, capture_events, reset_integration):
3333
3434
3535@patch ("sentry_sdk.integrations.unleash.UnleashClient" , MockUnleashClient )
36- def test_get_variant (sentry_init , capture_events , reset_integration ):
36+ def test_get_variant (sentry_init , capture_events , uninstall_integration ):
3737 client = MockUnleashClient ()
38- reset_integration (UnleashIntegration . identifier )
38+ uninstall_integration (UnleashIntegration )
3939 sentry_init (integrations = [UnleashIntegration ()])
4040
4141 client .get_variant ("toggle_feature" )
@@ -58,8 +58,8 @@ def test_get_variant(sentry_init, capture_events, reset_integration):
5858
5959
6060@patch ("sentry_sdk.integrations.unleash.UnleashClient" , MockUnleashClient )
61- def test_wraps_original (sentry_init , reset_integration ):
62- reset_integration (UnleashIntegration . identifier )
61+ def test_wraps_original (sentry_init , uninstall_integration ):
62+ uninstall_integration (UnleashIntegration )
6363
6464 with patch (
6565 "sentry_sdk.integrations.unleash.UnleashClient.is_enabled"
@@ -88,8 +88,8 @@ def test_wraps_original(sentry_init, reset_integration):
8888
8989
9090@patch ("sentry_sdk.integrations.unleash.UnleashClient" , MockUnleashClient )
91- def test_wrapper_attributes (sentry_init , reset_integration ):
92- reset_integration (UnleashIntegration . identifier )
91+ def test_wrapper_attributes (sentry_init , uninstall_integration ):
92+ uninstall_integration (UnleashIntegration )
9393 sentry_init (integrations = [UnleashIntegration ()])
9494
9595 client = MockUnleashClient ()
0 commit comments