@@ -124,34 +124,33 @@ def test_create_replay_job_return_annotation(self):
124124 ), f"Method create_replay_job should have return type annotation"
125125
126126
127- def test_delete_subscription_exists (self ):
128- """Test that delete_subscription method exists with correct signature."""
127+ def test_validate_subscription_exists (self ):
128+ """Test that validate_subscription method exists with correct signature."""
129129 # Check method exists
130- method = getattr (AccountActivityClient , "delete_subscription " , None )
130+ method = getattr (AccountActivityClient , "validate_subscription " , None )
131131 assert (
132132 method is not None
133- ), f"Method delete_subscription does not exist on AccountActivityClient"
133+ ), f"Method validate_subscription does not exist on AccountActivityClient"
134134 # Check method is callable
135- assert callable (method ), f"delete_subscription is not callable"
135+ assert callable (method ), f"validate_subscription is not callable"
136136 # Check method signature
137137 sig = inspect .signature (method )
138138 params = list (sig .parameters .keys ())
139139 # Should have 'self' as first parameter
140140 assert (
141141 len (params ) >= 1
142- ), f"delete_subscription should have at least 'self' parameter"
142+ ), f"validate_subscription should have at least 'self' parameter"
143143 assert (
144144 params [0 ] == "self"
145145 ), f"First parameter should be 'self', got '{ params [0 ]} '"
146146 # Check required parameters exist (excluding 'self')
147147 required_params = [
148148 "webhook_id" ,
149- "user_id" ,
150149 ]
151150 for required_param in required_params :
152151 assert (
153152 required_param in params
154- ), f"Required parameter '{ required_param } ' missing from delete_subscription "
153+ ), f"Required parameter '{ required_param } ' missing from validate_subscription "
155154 # Check optional parameters have defaults (excluding 'self')
156155 optional_params = []
157156 for optional_param in optional_params :
@@ -162,41 +161,43 @@ def test_delete_subscription_exists(self):
162161 ), f"Optional parameter '{ optional_param } ' should have a default value"
163162
164163
165- def test_delete_subscription_return_annotation (self ):
166- """Test that delete_subscription has proper return type annotation."""
167- method = getattr (AccountActivityClient , "delete_subscription " )
164+ def test_validate_subscription_return_annotation (self ):
165+ """Test that validate_subscription has proper return type annotation."""
166+ method = getattr (AccountActivityClient , "validate_subscription " )
168167 sig = inspect .signature (method )
169168 # Check return annotation exists
170169 assert (
171170 sig .return_annotation is not inspect .Signature .empty
172- ), f"Method delete_subscription should have return type annotation"
171+ ), f"Method validate_subscription should have return type annotation"
173172
174173
175- def test_get_subscription_count_exists (self ):
176- """Test that get_subscription_count method exists with correct signature."""
174+ def test_create_subscription_exists (self ):
175+ """Test that create_subscription method exists with correct signature."""
177176 # Check method exists
178- method = getattr (AccountActivityClient , "get_subscription_count " , None )
177+ method = getattr (AccountActivityClient , "create_subscription " , None )
179178 assert (
180179 method is not None
181- ), f"Method get_subscription_count does not exist on AccountActivityClient"
180+ ), f"Method create_subscription does not exist on AccountActivityClient"
182181 # Check method is callable
183- assert callable (method ), f"get_subscription_count is not callable"
182+ assert callable (method ), f"create_subscription is not callable"
184183 # Check method signature
185184 sig = inspect .signature (method )
186185 params = list (sig .parameters .keys ())
187186 # Should have 'self' as first parameter
188187 assert (
189188 len (params ) >= 1
190- ), f"get_subscription_count should have at least 'self' parameter"
189+ ), f"create_subscription should have at least 'self' parameter"
191190 assert (
192191 params [0 ] == "self"
193192 ), f"First parameter should be 'self', got '{ params [0 ]} '"
194193 # Check required parameters exist (excluding 'self')
195- required_params = []
194+ required_params = [
195+ "webhook_id" ,
196+ ]
196197 for required_param in required_params :
197198 assert (
198199 required_param in params
199- ), f"Required parameter '{ required_param } ' missing from get_subscription_count "
200+ ), f"Required parameter '{ required_param } ' missing from create_subscription "
200201 # Check optional parameters have defaults (excluding 'self')
201202 optional_params = []
202203 for optional_param in optional_params :
@@ -207,43 +208,41 @@ def test_get_subscription_count_exists(self):
207208 ), f"Optional parameter '{ optional_param } ' should have a default value"
208209
209210
210- def test_get_subscription_count_return_annotation (self ):
211- """Test that get_subscription_count has proper return type annotation."""
212- method = getattr (AccountActivityClient , "get_subscription_count " )
211+ def test_create_subscription_return_annotation (self ):
212+ """Test that create_subscription has proper return type annotation."""
213+ method = getattr (AccountActivityClient , "create_subscription " )
213214 sig = inspect .signature (method )
214215 # Check return annotation exists
215216 assert (
216217 sig .return_annotation is not inspect .Signature .empty
217- ), f"Method get_subscription_count should have return type annotation"
218+ ), f"Method create_subscription should have return type annotation"
218219
219220
220- def test_validate_subscription_exists (self ):
221- """Test that validate_subscription method exists with correct signature."""
221+ def test_get_subscription_count_exists (self ):
222+ """Test that get_subscription_count method exists with correct signature."""
222223 # Check method exists
223- method = getattr (AccountActivityClient , "validate_subscription " , None )
224+ method = getattr (AccountActivityClient , "get_subscription_count " , None )
224225 assert (
225226 method is not None
226- ), f"Method validate_subscription does not exist on AccountActivityClient"
227+ ), f"Method get_subscription_count does not exist on AccountActivityClient"
227228 # Check method is callable
228- assert callable (method ), f"validate_subscription is not callable"
229+ assert callable (method ), f"get_subscription_count is not callable"
229230 # Check method signature
230231 sig = inspect .signature (method )
231232 params = list (sig .parameters .keys ())
232233 # Should have 'self' as first parameter
233234 assert (
234235 len (params ) >= 1
235- ), f"validate_subscription should have at least 'self' parameter"
236+ ), f"get_subscription_count should have at least 'self' parameter"
236237 assert (
237238 params [0 ] == "self"
238239 ), f"First parameter should be 'self', got '{ params [0 ]} '"
239240 # Check required parameters exist (excluding 'self')
240- required_params = [
241- "webhook_id" ,
242- ]
241+ required_params = []
243242 for required_param in required_params :
244243 assert (
245244 required_param in params
246- ), f"Required parameter '{ required_param } ' missing from validate_subscription "
245+ ), f"Required parameter '{ required_param } ' missing from get_subscription_count "
247246 # Check optional parameters have defaults (excluding 'self')
248247 optional_params = []
249248 for optional_param in optional_params :
@@ -254,43 +253,44 @@ def test_validate_subscription_exists(self):
254253 ), f"Optional parameter '{ optional_param } ' should have a default value"
255254
256255
257- def test_validate_subscription_return_annotation (self ):
258- """Test that validate_subscription has proper return type annotation."""
259- method = getattr (AccountActivityClient , "validate_subscription " )
256+ def test_get_subscription_count_return_annotation (self ):
257+ """Test that get_subscription_count has proper return type annotation."""
258+ method = getattr (AccountActivityClient , "get_subscription_count " )
260259 sig = inspect .signature (method )
261260 # Check return annotation exists
262261 assert (
263262 sig .return_annotation is not inspect .Signature .empty
264- ), f"Method validate_subscription should have return type annotation"
263+ ), f"Method get_subscription_count should have return type annotation"
265264
266265
267- def test_create_subscription_exists (self ):
268- """Test that create_subscription method exists with correct signature."""
266+ def test_delete_subscription_exists (self ):
267+ """Test that delete_subscription method exists with correct signature."""
269268 # Check method exists
270- method = getattr (AccountActivityClient , "create_subscription " , None )
269+ method = getattr (AccountActivityClient , "delete_subscription " , None )
271270 assert (
272271 method is not None
273- ), f"Method create_subscription does not exist on AccountActivityClient"
272+ ), f"Method delete_subscription does not exist on AccountActivityClient"
274273 # Check method is callable
275- assert callable (method ), f"create_subscription is not callable"
274+ assert callable (method ), f"delete_subscription is not callable"
276275 # Check method signature
277276 sig = inspect .signature (method )
278277 params = list (sig .parameters .keys ())
279278 # Should have 'self' as first parameter
280279 assert (
281280 len (params ) >= 1
282- ), f"create_subscription should have at least 'self' parameter"
281+ ), f"delete_subscription should have at least 'self' parameter"
283282 assert (
284283 params [0 ] == "self"
285284 ), f"First parameter should be 'self', got '{ params [0 ]} '"
286285 # Check required parameters exist (excluding 'self')
287286 required_params = [
288287 "webhook_id" ,
288+ "user_id" ,
289289 ]
290290 for required_param in required_params :
291291 assert (
292292 required_param in params
293- ), f"Required parameter '{ required_param } ' missing from create_subscription "
293+ ), f"Required parameter '{ required_param } ' missing from delete_subscription "
294294 # Check optional parameters have defaults (excluding 'self')
295295 optional_params = []
296296 for optional_param in optional_params :
@@ -301,25 +301,25 @@ def test_create_subscription_exists(self):
301301 ), f"Optional parameter '{ optional_param } ' should have a default value"
302302
303303
304- def test_create_subscription_return_annotation (self ):
305- """Test that create_subscription has proper return type annotation."""
306- method = getattr (AccountActivityClient , "create_subscription " )
304+ def test_delete_subscription_return_annotation (self ):
305+ """Test that delete_subscription has proper return type annotation."""
306+ method = getattr (AccountActivityClient , "delete_subscription " )
307307 sig = inspect .signature (method )
308308 # Check return annotation exists
309309 assert (
310310 sig .return_annotation is not inspect .Signature .empty
311- ), f"Method create_subscription should have return type annotation"
311+ ), f"Method delete_subscription should have return type annotation"
312312
313313
314314 def test_all_expected_methods_exist (self ):
315315 """Test that all expected methods exist on the client."""
316316 expected_methods = [
317317 "get_subscriptions" ,
318318 "create_replay_job" ,
319- "delete_subscription" ,
320- "get_subscription_count" ,
321319 "validate_subscription" ,
322320 "create_subscription" ,
321+ "get_subscription_count" ,
322+ "delete_subscription" ,
323323 ]
324324 for expected_method in expected_methods :
325325 assert hasattr (
0 commit comments