@@ -43,22 +43,22 @@ def setup_class(self):
4343 self .account_activity_client = getattr (self .client , "account_activity" )
4444
4545
46- def test_get_subscriptions_exists (self ):
47- """Test that get_subscriptions method exists with correct signature."""
46+ def test_validate_subscription_exists (self ):
47+ """Test that validate_subscription method exists with correct signature."""
4848 # Check method exists
49- method = getattr (AccountActivityClient , "get_subscriptions " , None )
49+ method = getattr (AccountActivityClient , "validate_subscription " , None )
5050 assert (
5151 method is not None
52- ), f"Method get_subscriptions does not exist on AccountActivityClient"
52+ ), f"Method validate_subscription does not exist on AccountActivityClient"
5353 # Check method is callable
54- assert callable (method ), f"get_subscriptions is not callable"
54+ assert callable (method ), f"validate_subscription is not callable"
5555 # Check method signature
5656 sig = inspect .signature (method )
5757 params = list (sig .parameters .keys ())
5858 # Should have 'self' as first parameter
5959 assert (
6060 len (params ) >= 1
61- ), f"get_subscriptions should have at least 'self' parameter"
61+ ), f"validate_subscription should have at least 'self' parameter"
6262 assert (
6363 params [0 ] == "self"
6464 ), f"First parameter should be 'self', got '{ params [0 ]} '"
@@ -69,7 +69,7 @@ def test_get_subscriptions_exists(self):
6969 for required_param in required_params :
7070 assert (
7171 required_param in params
72- ), f"Required parameter '{ required_param } ' missing from get_subscriptions "
72+ ), f"Required parameter '{ required_param } ' missing from validate_subscription "
7373 # Check optional parameters have defaults (excluding 'self')
7474 optional_params = []
7575 for optional_param in optional_params :
@@ -80,41 +80,43 @@ def test_get_subscriptions_exists(self):
8080 ), f"Optional parameter '{ optional_param } ' should have a default value"
8181
8282
83- def test_get_subscriptions_return_annotation (self ):
84- """Test that get_subscriptions has proper return type annotation."""
85- method = getattr (AccountActivityClient , "get_subscriptions " )
83+ def test_validate_subscription_return_annotation (self ):
84+ """Test that validate_subscription has proper return type annotation."""
85+ method = getattr (AccountActivityClient , "validate_subscription " )
8686 sig = inspect .signature (method )
8787 # Check return annotation exists
8888 assert (
8989 sig .return_annotation is not inspect .Signature .empty
90- ), f"Method get_subscriptions should have return type annotation"
90+ ), f"Method validate_subscription should have return type annotation"
9191
9292
93- def test_get_subscription_count_exists (self ):
94- """Test that get_subscription_count method exists with correct signature."""
93+ def test_create_subscription_exists (self ):
94+ """Test that create_subscription method exists with correct signature."""
9595 # Check method exists
96- method = getattr (AccountActivityClient , "get_subscription_count " , None )
96+ method = getattr (AccountActivityClient , "create_subscription " , None )
9797 assert (
9898 method is not None
99- ), f"Method get_subscription_count does not exist on AccountActivityClient"
99+ ), f"Method create_subscription does not exist on AccountActivityClient"
100100 # Check method is callable
101- assert callable (method ), f"get_subscription_count is not callable"
101+ assert callable (method ), f"create_subscription is not callable"
102102 # Check method signature
103103 sig = inspect .signature (method )
104104 params = list (sig .parameters .keys ())
105105 # Should have 'self' as first parameter
106106 assert (
107107 len (params ) >= 1
108- ), f"get_subscription_count should have at least 'self' parameter"
108+ ), f"create_subscription should have at least 'self' parameter"
109109 assert (
110110 params [0 ] == "self"
111111 ), f"First parameter should be 'self', got '{ params [0 ]} '"
112112 # Check required parameters exist (excluding 'self')
113- required_params = []
113+ required_params = [
114+ "webhook_id" ,
115+ ]
114116 for required_param in required_params :
115117 assert (
116118 required_param in params
117- ), f"Required parameter '{ required_param } ' missing from get_subscription_count "
119+ ), f"Required parameter '{ required_param } ' missing from create_subscription "
118120 # Check optional parameters have defaults (excluding 'self')
119121 optional_params = []
120122 for optional_param in optional_params :
@@ -125,44 +127,43 @@ def test_get_subscription_count_exists(self):
125127 ), f"Optional parameter '{ optional_param } ' should have a default value"
126128
127129
128- def test_get_subscription_count_return_annotation (self ):
129- """Test that get_subscription_count has proper return type annotation."""
130- method = getattr (AccountActivityClient , "get_subscription_count " )
130+ def test_create_subscription_return_annotation (self ):
131+ """Test that create_subscription has proper return type annotation."""
132+ method = getattr (AccountActivityClient , "create_subscription " )
131133 sig = inspect .signature (method )
132134 # Check return annotation exists
133135 assert (
134136 sig .return_annotation is not inspect .Signature .empty
135- ), f"Method get_subscription_count should have return type annotation"
137+ ), f"Method create_subscription should have return type annotation"
136138
137139
138- def test_delete_subscription_exists (self ):
139- """Test that delete_subscription method exists with correct signature."""
140+ def test_get_subscriptions_exists (self ):
141+ """Test that get_subscriptions method exists with correct signature."""
140142 # Check method exists
141- method = getattr (AccountActivityClient , "delete_subscription " , None )
143+ method = getattr (AccountActivityClient , "get_subscriptions " , None )
142144 assert (
143145 method is not None
144- ), f"Method delete_subscription does not exist on AccountActivityClient"
146+ ), f"Method get_subscriptions does not exist on AccountActivityClient"
145147 # Check method is callable
146- assert callable (method ), f"delete_subscription is not callable"
148+ assert callable (method ), f"get_subscriptions is not callable"
147149 # Check method signature
148150 sig = inspect .signature (method )
149151 params = list (sig .parameters .keys ())
150152 # Should have 'self' as first parameter
151153 assert (
152154 len (params ) >= 1
153- ), f"delete_subscription should have at least 'self' parameter"
155+ ), f"get_subscriptions should have at least 'self' parameter"
154156 assert (
155157 params [0 ] == "self"
156158 ), f"First parameter should be 'self', got '{ params [0 ]} '"
157159 # Check required parameters exist (excluding 'self')
158160 required_params = [
159161 "webhook_id" ,
160- "user_id" ,
161162 ]
162163 for required_param in required_params :
163164 assert (
164165 required_param in params
165- ), f"Required parameter '{ required_param } ' missing from delete_subscription "
166+ ), f"Required parameter '{ required_param } ' missing from get_subscriptions "
166167 # Check optional parameters have defaults (excluding 'self')
167168 optional_params = []
168169 for optional_param in optional_params :
@@ -173,43 +174,44 @@ def test_delete_subscription_exists(self):
173174 ), f"Optional parameter '{ optional_param } ' should have a default value"
174175
175176
176- def test_delete_subscription_return_annotation (self ):
177- """Test that delete_subscription has proper return type annotation."""
178- method = getattr (AccountActivityClient , "delete_subscription " )
177+ def test_get_subscriptions_return_annotation (self ):
178+ """Test that get_subscriptions has proper return type annotation."""
179+ method = getattr (AccountActivityClient , "get_subscriptions " )
179180 sig = inspect .signature (method )
180181 # Check return annotation exists
181182 assert (
182183 sig .return_annotation is not inspect .Signature .empty
183- ), f"Method delete_subscription should have return type annotation"
184+ ), f"Method get_subscriptions should have return type annotation"
184185
185186
186- def test_validate_subscription_exists (self ):
187- """Test that validate_subscription method exists with correct signature."""
187+ def test_delete_subscription_exists (self ):
188+ """Test that delete_subscription method exists with correct signature."""
188189 # Check method exists
189- method = getattr (AccountActivityClient , "validate_subscription " , None )
190+ method = getattr (AccountActivityClient , "delete_subscription " , None )
190191 assert (
191192 method is not None
192- ), f"Method validate_subscription does not exist on AccountActivityClient"
193+ ), f"Method delete_subscription does not exist on AccountActivityClient"
193194 # Check method is callable
194- assert callable (method ), f"validate_subscription is not callable"
195+ assert callable (method ), f"delete_subscription is not callable"
195196 # Check method signature
196197 sig = inspect .signature (method )
197198 params = list (sig .parameters .keys ())
198199 # Should have 'self' as first parameter
199200 assert (
200201 len (params ) >= 1
201- ), f"validate_subscription should have at least 'self' parameter"
202+ ), f"delete_subscription should have at least 'self' parameter"
202203 assert (
203204 params [0 ] == "self"
204205 ), f"First parameter should be 'self', got '{ params [0 ]} '"
205206 # Check required parameters exist (excluding 'self')
206207 required_params = [
207208 "webhook_id" ,
209+ "user_id" ,
208210 ]
209211 for required_param in required_params :
210212 assert (
211213 required_param in params
212- ), f"Required parameter '{ required_param } ' missing from validate_subscription "
214+ ), f"Required parameter '{ required_param } ' missing from delete_subscription "
213215 # Check optional parameters have defaults (excluding 'self')
214216 optional_params = []
215217 for optional_param in optional_params :
@@ -220,43 +222,41 @@ def test_validate_subscription_exists(self):
220222 ), f"Optional parameter '{ optional_param } ' should have a default value"
221223
222224
223- def test_validate_subscription_return_annotation (self ):
224- """Test that validate_subscription has proper return type annotation."""
225- method = getattr (AccountActivityClient , "validate_subscription " )
225+ def test_delete_subscription_return_annotation (self ):
226+ """Test that delete_subscription has proper return type annotation."""
227+ method = getattr (AccountActivityClient , "delete_subscription " )
226228 sig = inspect .signature (method )
227229 # Check return annotation exists
228230 assert (
229231 sig .return_annotation is not inspect .Signature .empty
230- ), f"Method validate_subscription should have return type annotation"
232+ ), f"Method delete_subscription should have return type annotation"
231233
232234
233- def test_create_subscription_exists (self ):
234- """Test that create_subscription method exists with correct signature."""
235+ def test_get_subscription_count_exists (self ):
236+ """Test that get_subscription_count method exists with correct signature."""
235237 # Check method exists
236- method = getattr (AccountActivityClient , "create_subscription " , None )
238+ method = getattr (AccountActivityClient , "get_subscription_count " , None )
237239 assert (
238240 method is not None
239- ), f"Method create_subscription does not exist on AccountActivityClient"
241+ ), f"Method get_subscription_count does not exist on AccountActivityClient"
240242 # Check method is callable
241- assert callable (method ), f"create_subscription is not callable"
243+ assert callable (method ), f"get_subscription_count is not callable"
242244 # Check method signature
243245 sig = inspect .signature (method )
244246 params = list (sig .parameters .keys ())
245247 # Should have 'self' as first parameter
246248 assert (
247249 len (params ) >= 1
248- ), f"create_subscription should have at least 'self' parameter"
250+ ), f"get_subscription_count should have at least 'self' parameter"
249251 assert (
250252 params [0 ] == "self"
251253 ), f"First parameter should be 'self', got '{ params [0 ]} '"
252254 # Check required parameters exist (excluding 'self')
253- required_params = [
254- "webhook_id" ,
255- ]
255+ required_params = []
256256 for required_param in required_params :
257257 assert (
258258 required_param in params
259- ), f"Required parameter '{ required_param } ' missing from create_subscription "
259+ ), f"Required parameter '{ required_param } ' missing from get_subscription_count "
260260 # Check optional parameters have defaults (excluding 'self')
261261 optional_params = []
262262 for optional_param in optional_params :
@@ -267,24 +267,24 @@ def test_create_subscription_exists(self):
267267 ), f"Optional parameter '{ optional_param } ' should have a default value"
268268
269269
270- def test_create_subscription_return_annotation (self ):
271- """Test that create_subscription has proper return type annotation."""
272- method = getattr (AccountActivityClient , "create_subscription " )
270+ def test_get_subscription_count_return_annotation (self ):
271+ """Test that get_subscription_count has proper return type annotation."""
272+ method = getattr (AccountActivityClient , "get_subscription_count " )
273273 sig = inspect .signature (method )
274274 # Check return annotation exists
275275 assert (
276276 sig .return_annotation is not inspect .Signature .empty
277- ), f"Method create_subscription should have return type annotation"
277+ ), f"Method get_subscription_count should have return type annotation"
278278
279279
280280 def test_all_expected_methods_exist (self ):
281281 """Test that all expected methods exist on the client."""
282282 expected_methods = [
283- "get_subscriptions" ,
284- "get_subscription_count" ,
285- "delete_subscription" ,
286283 "validate_subscription" ,
287284 "create_subscription" ,
285+ "get_subscriptions" ,
286+ "delete_subscription" ,
287+ "get_subscription_count" ,
288288 ]
289289 for expected_method in expected_methods :
290290 assert hasattr (
0 commit comments