@@ -48,11 +48,7 @@ def test_update_caches__with_usage_data__populates_cache_correctly( # type: ign
4848 mocked_get_subscription_metadata .return_value = chargebee_metadata
4949
5050 # When
51- subscription_cache_entities = (
52- SubscriptionCacheEntity .API_USAGE ,
53- SubscriptionCacheEntity .CHARGEBEE ,
54- )
55- update_caches (subscription_cache_entities )
51+ update_caches (SubscriptionCacheEntity .API_USAGE , SubscriptionCacheEntity .CHARGEBEE )
5652
5753 # Then
5854 assert (
@@ -118,11 +114,7 @@ def test_update_caches__no_usage_data__resets_cache_to_zero(
118114 mocked_get_subscription_metadata .return_value = chargebee_metadata
119115
120116 # When
121- subscription_cache_entities = (
122- SubscriptionCacheEntity .API_USAGE ,
123- SubscriptionCacheEntity .CHARGEBEE ,
124- )
125- update_caches (subscription_cache_entities )
117+ update_caches (SubscriptionCacheEntity .API_USAGE , SubscriptionCacheEntity .CHARGEBEE )
126118
127119 # Then
128120 organisation .refresh_from_db ()
@@ -159,7 +151,7 @@ def test_update_caches__postgres_analytics__populates_cache_correctly(
159151 )
160152
161153 # When
162- update_caches (( SubscriptionCacheEntity .API_USAGE ,) )
154+ update_caches (SubscriptionCacheEntity .API_USAGE )
163155
164156 # Then
165157 organisation .refresh_from_db ()
@@ -197,7 +189,7 @@ def test_update_caches__postgres_and_influx_configured__prefers_postgres(
197189 )
198190
199191 # When
200- update_caches (( SubscriptionCacheEntity .API_USAGE ,) )
192+ update_caches (SubscriptionCacheEntity .API_USAGE )
201193
202194 # Then
203195 assert mocked_get_top_organisations_from_local_db .call_count == 3
@@ -228,7 +220,7 @@ def test_update_caches__no_analytics_source_configured__skips_api_usage_update(
228220 )
229221
230222 # When
231- update_caches (( SubscriptionCacheEntity .API_USAGE ,) )
223+ update_caches (SubscriptionCacheEntity .API_USAGE )
232224
233225 # Then — neither analytics source was queried
234226 assert mock_get_top_organisations_from_local_db .call_count == 0
0 commit comments