1212
1313
1414def test_is_enabled (sentry_init , capture_events , uninstall_integration ):
15- uninstall_integration (UnleashIntegration )
15+ uninstall_integration (UnleashIntegration . identifier )
1616
1717 with mock_unleash_client ():
1818 client = UnleashClient ()
@@ -35,7 +35,7 @@ def test_is_enabled(sentry_init, capture_events, uninstall_integration):
3535
3636
3737def test_get_variant (sentry_init , capture_events , uninstall_integration ):
38- uninstall_integration (UnleashIntegration )
38+ uninstall_integration (UnleashIntegration . identifier )
3939
4040 with mock_unleash_client ():
4141 client = UnleashClient ()
@@ -64,7 +64,7 @@ def test_get_variant(sentry_init, capture_events, uninstall_integration):
6464
6565
6666def test_is_enabled_threaded (sentry_init , capture_events , uninstall_integration ):
67- uninstall_integration (UnleashIntegration )
67+ uninstall_integration (UnleashIntegration . identifier )
6868
6969 with mock_unleash_client ():
7070 client = UnleashClient ()
@@ -113,7 +113,7 @@ def task(flag_key):
113113
114114
115115def test_get_variant_threaded (sentry_init , capture_events , uninstall_integration ):
116- uninstall_integration (UnleashIntegration )
116+ uninstall_integration (UnleashIntegration . identifier )
117117
118118 with mock_unleash_client ():
119119 client = UnleashClient ()
@@ -164,7 +164,7 @@ def task(flag_key):
164164@pytest .mark .skipif (sys .version_info < (3 , 7 ), reason = "requires python3.7 or higher" )
165165def test_is_enabled_asyncio (sentry_init , capture_events , uninstall_integration ):
166166 asyncio = pytest .importorskip ("asyncio" )
167- uninstall_integration (UnleashIntegration )
167+ uninstall_integration (UnleashIntegration . identifier )
168168
169169 with mock_unleash_client ():
170170 client = UnleashClient ()
@@ -216,7 +216,7 @@ async def runner():
216216def test_get_variant_asyncio (sentry_init , capture_events , uninstall_integration ):
217217 asyncio = pytest .importorskip ("asyncio" )
218218
219- uninstall_integration (UnleashIntegration )
219+ uninstall_integration (UnleashIntegration . identifier )
220220
221221 with mock_unleash_client ():
222222 client = UnleashClient ()
@@ -273,7 +273,7 @@ def test_wraps_original(sentry_init, uninstall_integration):
273273 client .is_enabled = mock_is_enabled
274274 client .get_variant = mock_get_variant
275275
276- uninstall_integration (UnleashIntegration )
276+ uninstall_integration (UnleashIntegration . identifier )
277277 sentry_init (integrations = [UnleashIntegration ()]) # type: ignore
278278
279279 res = client .is_enabled ("test-flag" , "arg" , kwarg = 1 )
@@ -298,7 +298,7 @@ def test_wrapper_attributes(sentry_init, uninstall_integration):
298298 original_is_enabled = client .is_enabled
299299 original_get_variant = client .get_variant
300300
301- uninstall_integration (UnleashIntegration )
301+ uninstall_integration (UnleashIntegration . identifier )
302302 sentry_init (integrations = [UnleashIntegration ()]) # type: ignore
303303
304304 # Mock clients methods have not lost their qualified names after decoration.
0 commit comments