@@ -28,55 +28,6 @@ def setup_class(self):
2828 self .account_activity_client = getattr (self .client , "account_activity" )
2929
3030
31- def test_create_replay_job_exists (self ):
32- """Test that create_replay_job method exists with correct signature."""
33- # Check method exists
34- method = getattr (AccountActivityClient , "create_replay_job" , None )
35- assert (
36- method is not None
37- ), f"Method create_replay_job does not exist on AccountActivityClient"
38- # Check method is callable
39- assert callable (method ), f"create_replay_job is not callable"
40- # Check method signature
41- sig = inspect .signature (method )
42- params = list (sig .parameters .keys ())
43- # Should have 'self' as first parameter
44- assert (
45- len (params ) >= 1
46- ), f"create_replay_job should have at least 'self' parameter"
47- assert (
48- params [0 ] == "self"
49- ), f"First parameter should be 'self', got '{ params [0 ]} '"
50- # Check required parameters exist (excluding 'self')
51- required_params = [
52- "webhook_id" ,
53- "from_date" ,
54- "to_date" ,
55- ]
56- for required_param in required_params :
57- assert (
58- required_param in params
59- ), f"Required parameter '{ required_param } ' missing from create_replay_job"
60- # Check optional parameters have defaults (excluding 'self')
61- optional_params = []
62- for optional_param in optional_params :
63- if optional_param in params :
64- param_obj = sig .parameters [optional_param ]
65- assert (
66- param_obj .default is not inspect .Parameter .empty
67- ), f"Optional parameter '{ optional_param } ' should have a default value"
68-
69-
70- def test_create_replay_job_return_annotation (self ):
71- """Test that create_replay_job has proper return type annotation."""
72- method = getattr (AccountActivityClient , "create_replay_job" )
73- sig = inspect .signature (method )
74- # Check return annotation exists
75- assert (
76- sig .return_annotation is not inspect .Signature .empty
77- ), f"Method create_replay_job should have return type annotation"
78-
79-
8031 def test_validate_subscription_exists (self ):
8132 """Test that validate_subscription method exists with correct signature."""
8233 # Check method exists
@@ -219,31 +170,35 @@ def test_delete_subscription_return_annotation(self):
219170 ), f"Method delete_subscription should have return type annotation"
220171
221172
222- def test_get_subscription_count_exists (self ):
223- """Test that get_subscription_count method exists with correct signature."""
173+ def test_create_replay_job_exists (self ):
174+ """Test that create_replay_job method exists with correct signature."""
224175 # Check method exists
225- method = getattr (AccountActivityClient , "get_subscription_count " , None )
176+ method = getattr (AccountActivityClient , "create_replay_job " , None )
226177 assert (
227178 method is not None
228- ), f"Method get_subscription_count does not exist on AccountActivityClient"
179+ ), f"Method create_replay_job does not exist on AccountActivityClient"
229180 # Check method is callable
230- assert callable (method ), f"get_subscription_count is not callable"
181+ assert callable (method ), f"create_replay_job is not callable"
231182 # Check method signature
232183 sig = inspect .signature (method )
233184 params = list (sig .parameters .keys ())
234185 # Should have 'self' as first parameter
235186 assert (
236187 len (params ) >= 1
237- ), f"get_subscription_count should have at least 'self' parameter"
188+ ), f"create_replay_job should have at least 'self' parameter"
238189 assert (
239190 params [0 ] == "self"
240191 ), f"First parameter should be 'self', got '{ params [0 ]} '"
241192 # Check required parameters exist (excluding 'self')
242- required_params = []
193+ required_params = [
194+ "webhook_id" ,
195+ "from_date" ,
196+ "to_date" ,
197+ ]
243198 for required_param in required_params :
244199 assert (
245200 required_param in params
246- ), f"Required parameter '{ required_param } ' missing from get_subscription_count "
201+ ), f"Required parameter '{ required_param } ' missing from create_replay_job "
247202 # Check optional parameters have defaults (excluding 'self')
248203 optional_params = []
249204 for optional_param in optional_params :
@@ -254,14 +209,14 @@ def test_get_subscription_count_exists(self):
254209 ), f"Optional parameter '{ optional_param } ' should have a default value"
255210
256211
257- def test_get_subscription_count_return_annotation (self ):
258- """Test that get_subscription_count has proper return type annotation."""
259- method = getattr (AccountActivityClient , "get_subscription_count " )
212+ def test_create_replay_job_return_annotation (self ):
213+ """Test that create_replay_job has proper return type annotation."""
214+ method = getattr (AccountActivityClient , "create_replay_job " )
260215 sig = inspect .signature (method )
261216 # Check return annotation exists
262217 assert (
263218 sig .return_annotation is not inspect .Signature .empty
264- ), f"Method get_subscription_count should have return type annotation"
219+ ), f"Method create_replay_job should have return type annotation"
265220
266221
267222 def test_get_subscriptions_exists (self ):
@@ -311,15 +266,60 @@ def test_get_subscriptions_return_annotation(self):
311266 ), f"Method get_subscriptions should have return type annotation"
312267
313268
269+ def test_get_subscription_count_exists (self ):
270+ """Test that get_subscription_count method exists with correct signature."""
271+ # Check method exists
272+ method = getattr (AccountActivityClient , "get_subscription_count" , None )
273+ assert (
274+ method is not None
275+ ), f"Method get_subscription_count does not exist on AccountActivityClient"
276+ # Check method is callable
277+ assert callable (method ), f"get_subscription_count is not callable"
278+ # Check method signature
279+ sig = inspect .signature (method )
280+ params = list (sig .parameters .keys ())
281+ # Should have 'self' as first parameter
282+ assert (
283+ len (params ) >= 1
284+ ), f"get_subscription_count should have at least 'self' parameter"
285+ assert (
286+ params [0 ] == "self"
287+ ), f"First parameter should be 'self', got '{ params [0 ]} '"
288+ # Check required parameters exist (excluding 'self')
289+ required_params = []
290+ for required_param in required_params :
291+ assert (
292+ required_param in params
293+ ), f"Required parameter '{ required_param } ' missing from get_subscription_count"
294+ # Check optional parameters have defaults (excluding 'self')
295+ optional_params = []
296+ for optional_param in optional_params :
297+ if optional_param in params :
298+ param_obj = sig .parameters [optional_param ]
299+ assert (
300+ param_obj .default is not inspect .Parameter .empty
301+ ), f"Optional parameter '{ optional_param } ' should have a default value"
302+
303+
304+ def test_get_subscription_count_return_annotation (self ):
305+ """Test that get_subscription_count has proper return type annotation."""
306+ method = getattr (AccountActivityClient , "get_subscription_count" )
307+ sig = inspect .signature (method )
308+ # Check return annotation exists
309+ assert (
310+ sig .return_annotation is not inspect .Signature .empty
311+ ), f"Method get_subscription_count should have return type annotation"
312+
313+
314314 def test_all_expected_methods_exist (self ):
315315 """Test that all expected methods exist on the client."""
316316 expected_methods = [
317- "create_replay_job" ,
318317 "validate_subscription" ,
319318 "create_subscription" ,
320319 "delete_subscription" ,
321- "get_subscription_count " ,
320+ "create_replay_job " ,
322321 "get_subscriptions" ,
322+ "get_subscription_count" ,
323323 ]
324324 for expected_method in expected_methods :
325325 assert hasattr (
0 commit comments