@@ -15,7 +15,7 @@ def test_is_enabled(sentry_init, capture_events, uninstall_integration):
1515 uninstall_integration (UnleashIntegration .identifier )
1616
1717 with mock_unleash_client ():
18- client = UnleashClient ()
18+ client = UnleashClient () # type: ignore[arg-type]
1919 sentry_init (integrations = [UnleashIntegration ()])
2020 client .is_enabled ("hello" )
2121 client .is_enabled ("world" )
@@ -38,9 +38,10 @@ def test_get_variant(sentry_init, capture_events, uninstall_integration):
3838 uninstall_integration (UnleashIntegration .identifier )
3939
4040 with mock_unleash_client ():
41- client = UnleashClient ()
42- sentry_init (integrations = [UnleashIntegration ()]) # type: ignore
41+ client = UnleashClient () # type: ignore[arg-type]
42+ sentry_init (integrations = [UnleashIntegration ()])
4343 client .get_variant ("no_payload_feature" )
44+ client .get_variant ("no_variant_feature" )
4445 client .get_variant ("string_feature" )
4546 client .get_variant ("json_feature" )
4647 client .get_variant ("csv_feature" )
@@ -54,6 +55,7 @@ def test_get_variant(sentry_init, capture_events, uninstall_integration):
5455 assert events [0 ]["contexts" ]["flags" ] == {
5556 "values" : [
5657 {"flag" : "no_payload_feature" , "result" : True },
58+ {"flag" : "no_variant_feature" , "result" : True },
5759 {"flag" : "string_feature" , "result" : True },
5860 {"flag" : "json_feature" , "result" : True },
5961 {"flag" : "csv_feature" , "result" : True },
@@ -67,8 +69,8 @@ def test_is_enabled_threaded(sentry_init, capture_events, uninstall_integration)
6769 uninstall_integration (UnleashIntegration .identifier )
6870
6971 with mock_unleash_client ():
70- client = UnleashClient ()
71- sentry_init (integrations = [UnleashIntegration ()]) # type: ignore
72+ client = UnleashClient () # type: ignore[arg-type]
73+ sentry_init (integrations = [UnleashIntegration ()])
7274 events = capture_events ()
7375
7476 def task (flag_key ):
@@ -116,8 +118,8 @@ def test_get_variant_threaded(sentry_init, capture_events, uninstall_integration
116118 uninstall_integration (UnleashIntegration .identifier )
117119
118120 with mock_unleash_client ():
119- client = UnleashClient ()
120- sentry_init (integrations = [UnleashIntegration ()]) # type: ignore
121+ client = UnleashClient () # type: ignore[arg-type]
122+ sentry_init (integrations = [UnleashIntegration ()])
121123 events = capture_events ()
122124
123125 def task (flag_key ):
@@ -167,8 +169,8 @@ def test_is_enabled_asyncio(sentry_init, capture_events, uninstall_integration):
167169 uninstall_integration (UnleashIntegration .identifier )
168170
169171 with mock_unleash_client ():
170- client = UnleashClient ()
171- sentry_init (integrations = [UnleashIntegration ()]) # type: ignore
172+ client = UnleashClient () # type: ignore[arg-type]
173+ sentry_init (integrations = [UnleashIntegration ()])
172174 events = capture_events ()
173175
174176 async def task (flag_key ):
@@ -219,8 +221,8 @@ def test_get_variant_asyncio(sentry_init, capture_events, uninstall_integration)
219221 uninstall_integration (UnleashIntegration .identifier )
220222
221223 with mock_unleash_client ():
222- client = UnleashClient ()
223- sentry_init (integrations = [UnleashIntegration ()]) # type: ignore
224+ client = UnleashClient () # type: ignore[arg-type]
225+ sentry_init (integrations = [UnleashIntegration ()])
224226 events = capture_events ()
225227
226228 async def task (flag_key ):
@@ -266,7 +268,7 @@ async def runner():
266268
267269def test_wraps_original (sentry_init , uninstall_integration ):
268270 with mock_unleash_client ():
269- client = UnleashClient ()
271+ client = UnleashClient () # type: ignore[arg-type]
270272
271273 mock_is_enabled = mock .Mock (return_value = random () < 0.5 )
272274 mock_get_variant = mock .Mock (return_value = {"enabled" : random () < 0.5 })
@@ -293,7 +295,7 @@ def test_wraps_original(sentry_init, uninstall_integration):
293295
294296def test_wrapper_attributes (sentry_init , uninstall_integration ):
295297 with mock_unleash_client ():
296- client = UnleashClient () # <- Returns a MockUnleashClient
298+ client = UnleashClient () # type: ignore[arg-type]
297299
298300 original_is_enabled = client .is_enabled
299301 original_get_variant = client .get_variant
0 commit comments