@@ -25,7 +25,7 @@ def test_method_new(self, client: Finch) -> None:
25
25
session = client .connect .sessions .new (
26
26
customer_id = "x" ,
27
27
customer_name = "x" ,
28
- products = ["company" , "directory" , "individual" ],
28
+ products = ["company" ],
29
29
)
30
30
assert_matches_type (SessionNewResponse , session , path = ["response" ])
31
31
@@ -34,7 +34,7 @@ def test_method_new_with_all_params(self, client: Finch) -> None:
34
34
session = client .connect .sessions .new (
35
35
customer_id = "x" ,
36
36
customer_name = "x" ,
37
- products = ["company" , "directory" , "individual" ],
37
+ products = ["company" ],
38
38
customer_email = "[email protected] " ,
39
39
integration = {
40
40
"auth_method" : "assisted" ,
@@ -52,7 +52,7 @@ def test_raw_response_new(self, client: Finch) -> None:
52
52
response = client .connect .sessions .with_raw_response .new (
53
53
customer_id = "x" ,
54
54
customer_name = "x" ,
55
- products = ["company" , "directory" , "individual" ],
55
+ products = ["company" ],
56
56
)
57
57
58
58
assert response .is_closed is True
@@ -65,7 +65,7 @@ def test_streaming_response_new(self, client: Finch) -> None:
65
65
with client .connect .sessions .with_streaming_response .new (
66
66
customer_id = "x" ,
67
67
customer_name = "x" ,
68
- products = ["company" , "directory" , "individual" ],
68
+ products = ["company" ],
69
69
) as response :
70
70
assert not response .is_closed
71
71
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -87,7 +87,7 @@ def test_method_reauthenticate_with_all_params(self, client: Finch) -> None:
87
87
session = client .connect .sessions .reauthenticate (
88
88
connection_id = "connection_id" ,
89
89
minutes_to_expire = 0 ,
90
- products = ["company" , "directory" , "individual" ],
90
+ products = ["company" ],
91
91
redirect_uri = "https://example.com" ,
92
92
)
93
93
assert_matches_type (SessionReauthenticateResponse , session , path = ["response" ])
@@ -125,7 +125,7 @@ async def test_method_new(self, async_client: AsyncFinch) -> None:
125
125
session = await async_client .connect .sessions .new (
126
126
customer_id = "x" ,
127
127
customer_name = "x" ,
128
- products = ["company" , "directory" , "individual" ],
128
+ products = ["company" ],
129
129
)
130
130
assert_matches_type (SessionNewResponse , session , path = ["response" ])
131
131
@@ -134,7 +134,7 @@ async def test_method_new_with_all_params(self, async_client: AsyncFinch) -> Non
134
134
session = await async_client .connect .sessions .new (
135
135
customer_id = "x" ,
136
136
customer_name = "x" ,
137
- products = ["company" , "directory" , "individual" ],
137
+ products = ["company" ],
138
138
customer_email = "[email protected] " ,
139
139
integration = {
140
140
"auth_method" : "assisted" ,
@@ -152,7 +152,7 @@ async def test_raw_response_new(self, async_client: AsyncFinch) -> None:
152
152
response = await async_client .connect .sessions .with_raw_response .new (
153
153
customer_id = "x" ,
154
154
customer_name = "x" ,
155
- products = ["company" , "directory" , "individual" ],
155
+ products = ["company" ],
156
156
)
157
157
158
158
assert response .is_closed is True
@@ -165,7 +165,7 @@ async def test_streaming_response_new(self, async_client: AsyncFinch) -> None:
165
165
async with async_client .connect .sessions .with_streaming_response .new (
166
166
customer_id = "x" ,
167
167
customer_name = "x" ,
168
- products = ["company" , "directory" , "individual" ],
168
+ products = ["company" ],
169
169
) as response :
170
170
assert not response .is_closed
171
171
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -187,7 +187,7 @@ async def test_method_reauthenticate_with_all_params(self, async_client: AsyncFi
187
187
session = await async_client .connect .sessions .reauthenticate (
188
188
connection_id = "connection_id" ,
189
189
minutes_to_expire = 0 ,
190
- products = ["company" , "directory" , "individual" ],
190
+ products = ["company" ],
191
191
redirect_uri = "https://example.com" ,
192
192
)
193
193
assert_matches_type (SessionReauthenticateResponse , session , path = ["response" ])
0 commit comments