Skip to content

Commit 7adfa9f

Browse files
chore: rebuild project due to codegen change (#521)
1 parent 5fc1a87 commit 7adfa9f

11 files changed

+66
-334
lines changed

tests/api_resources/connect/test_sessions.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_method_new(self, client: Finch) -> None:
2525
session = client.connect.sessions.new(
2626
customer_id="x",
2727
customer_name="x",
28-
products=["company", "directory", "individual"],
28+
products=["company"],
2929
)
3030
assert_matches_type(SessionNewResponse, session, path=["response"])
3131

@@ -34,7 +34,7 @@ def test_method_new_with_all_params(self, client: Finch) -> None:
3434
session = client.connect.sessions.new(
3535
customer_id="x",
3636
customer_name="x",
37-
products=["company", "directory", "individual"],
37+
products=["company"],
3838
customer_email="[email protected]",
3939
integration={
4040
"auth_method": "assisted",
@@ -52,7 +52,7 @@ def test_raw_response_new(self, client: Finch) -> None:
5252
response = client.connect.sessions.with_raw_response.new(
5353
customer_id="x",
5454
customer_name="x",
55-
products=["company", "directory", "individual"],
55+
products=["company"],
5656
)
5757

5858
assert response.is_closed is True
@@ -65,7 +65,7 @@ def test_streaming_response_new(self, client: Finch) -> None:
6565
with client.connect.sessions.with_streaming_response.new(
6666
customer_id="x",
6767
customer_name="x",
68-
products=["company", "directory", "individual"],
68+
products=["company"],
6969
) as response:
7070
assert not response.is_closed
7171
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:
8787
session = client.connect.sessions.reauthenticate(
8888
connection_id="connection_id",
8989
minutes_to_expire=0,
90-
products=["company", "directory", "individual"],
90+
products=["company"],
9191
redirect_uri="https://example.com",
9292
)
9393
assert_matches_type(SessionReauthenticateResponse, session, path=["response"])
@@ -125,7 +125,7 @@ async def test_method_new(self, async_client: AsyncFinch) -> None:
125125
session = await async_client.connect.sessions.new(
126126
customer_id="x",
127127
customer_name="x",
128-
products=["company", "directory", "individual"],
128+
products=["company"],
129129
)
130130
assert_matches_type(SessionNewResponse, session, path=["response"])
131131

@@ -134,7 +134,7 @@ async def test_method_new_with_all_params(self, async_client: AsyncFinch) -> Non
134134
session = await async_client.connect.sessions.new(
135135
customer_id="x",
136136
customer_name="x",
137-
products=["company", "directory", "individual"],
137+
products=["company"],
138138
customer_email="[email protected]",
139139
integration={
140140
"auth_method": "assisted",
@@ -152,7 +152,7 @@ async def test_raw_response_new(self, async_client: AsyncFinch) -> None:
152152
response = await async_client.connect.sessions.with_raw_response.new(
153153
customer_id="x",
154154
customer_name="x",
155-
products=["company", "directory", "individual"],
155+
products=["company"],
156156
)
157157

158158
assert response.is_closed is True
@@ -165,7 +165,7 @@ async def test_streaming_response_new(self, async_client: AsyncFinch) -> None:
165165
async with async_client.connect.sessions.with_streaming_response.new(
166166
customer_id="x",
167167
customer_name="x",
168-
products=["company", "directory", "individual"],
168+
products=["company"],
169169
) as response:
170170
assert not response.is_closed
171171
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
187187
session = await async_client.connect.sessions.reauthenticate(
188188
connection_id="connection_id",
189189
minutes_to_expire=0,
190-
products=["company", "directory", "individual"],
190+
products=["company"],
191191
redirect_uri="https://example.com",
192192
)
193193
assert_matches_type(SessionReauthenticateResponse, session, path=["response"])

tests/api_resources/hris/benefits/test_individuals.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def test_method_unenroll_many(self, client: Finch) -> None:
160160
def test_method_unenroll_many_with_all_params(self, client: Finch) -> None:
161161
individual = client.hris.benefits.individuals.unenroll_many(
162162
benefit_id="benefit_id",
163-
individual_ids=["string", "string", "string"],
163+
individual_ids=["string"],
164164
)
165165
assert_matches_type(SyncSinglePage[UnenrolledIndividual], individual, path=["response"])
166166

@@ -336,7 +336,7 @@ async def test_method_unenroll_many(self, async_client: AsyncFinch) -> None:
336336
async def test_method_unenroll_many_with_all_params(self, async_client: AsyncFinch) -> None:
337337
individual = await async_client.hris.benefits.individuals.unenroll_many(
338338
benefit_id="benefit_id",
339-
individual_ids=["string", "string", "string"],
339+
individual_ids=["string"],
340340
)
341341
assert_matches_type(AsyncSinglePage[UnenrolledIndividual], individual, path=["response"])
342342

tests/api_resources/hris/test_employments.py

+6-30
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,14 @@ class TestEmployments:
2121
@parametrize
2222
def test_method_retrieve_many(self, client: Finch) -> None:
2323
employment = client.hris.employments.retrieve_many(
24-
requests=[
25-
{"individual_id": "individual_id"},
26-
{"individual_id": "individual_id"},
27-
{"individual_id": "individual_id"},
28-
],
24+
requests=[{"individual_id": "individual_id"}],
2925
)
3026
assert_matches_type(SyncResponsesPage[EmploymentDataResponse], employment, path=["response"])
3127

3228
@parametrize
3329
def test_raw_response_retrieve_many(self, client: Finch) -> None:
3430
response = client.hris.employments.with_raw_response.retrieve_many(
35-
requests=[
36-
{"individual_id": "individual_id"},
37-
{"individual_id": "individual_id"},
38-
{"individual_id": "individual_id"},
39-
],
31+
requests=[{"individual_id": "individual_id"}],
4032
)
4133

4234
assert response.is_closed is True
@@ -47,11 +39,7 @@ def test_raw_response_retrieve_many(self, client: Finch) -> None:
4739
@parametrize
4840
def test_streaming_response_retrieve_many(self, client: Finch) -> None:
4941
with client.hris.employments.with_streaming_response.retrieve_many(
50-
requests=[
51-
{"individual_id": "individual_id"},
52-
{"individual_id": "individual_id"},
53-
{"individual_id": "individual_id"},
54-
],
42+
requests=[{"individual_id": "individual_id"}],
5543
) as response:
5644
assert not response.is_closed
5745
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -68,22 +56,14 @@ class TestAsyncEmployments:
6856
@parametrize
6957
async def test_method_retrieve_many(self, async_client: AsyncFinch) -> None:
7058
employment = await async_client.hris.employments.retrieve_many(
71-
requests=[
72-
{"individual_id": "individual_id"},
73-
{"individual_id": "individual_id"},
74-
{"individual_id": "individual_id"},
75-
],
59+
requests=[{"individual_id": "individual_id"}],
7660
)
7761
assert_matches_type(AsyncResponsesPage[EmploymentDataResponse], employment, path=["response"])
7862

7963
@parametrize
8064
async def test_raw_response_retrieve_many(self, async_client: AsyncFinch) -> None:
8165
response = await async_client.hris.employments.with_raw_response.retrieve_many(
82-
requests=[
83-
{"individual_id": "individual_id"},
84-
{"individual_id": "individual_id"},
85-
{"individual_id": "individual_id"},
86-
],
66+
requests=[{"individual_id": "individual_id"}],
8767
)
8868

8969
assert response.is_closed is True
@@ -94,11 +74,7 @@ async def test_raw_response_retrieve_many(self, async_client: AsyncFinch) -> Non
9474
@parametrize
9575
async def test_streaming_response_retrieve_many(self, async_client: AsyncFinch) -> None:
9676
async with async_client.hris.employments.with_streaming_response.retrieve_many(
97-
requests=[
98-
{"individual_id": "individual_id"},
99-
{"individual_id": "individual_id"},
100-
{"individual_id": "individual_id"},
101-
],
77+
requests=[{"individual_id": "individual_id"}],
10278
) as response:
10379
assert not response.is_closed
10480
assert response.http_request.headers.get("X-Stainless-Lang") == "python"

tests/api_resources/hris/test_individuals.py

+4-12
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,8 @@ def test_method_retrieve_many(self, client: Finch) -> None:
2626
@parametrize
2727
def test_method_retrieve_many_with_all_params(self, client: Finch) -> None:
2828
individual = client.hris.individuals.retrieve_many(
29-
options={"include": ["string", "string", "string"]},
30-
requests=[
31-
{"individual_id": "individual_id"},
32-
{"individual_id": "individual_id"},
33-
{"individual_id": "individual_id"},
34-
],
29+
options={"include": ["string"]},
30+
requests=[{"individual_id": "individual_id"}],
3531
)
3632
assert_matches_type(SyncResponsesPage[IndividualResponse], individual, path=["response"])
3733

@@ -67,12 +63,8 @@ async def test_method_retrieve_many(self, async_client: AsyncFinch) -> None:
6763
@parametrize
6864
async def test_method_retrieve_many_with_all_params(self, async_client: AsyncFinch) -> None:
6965
individual = await async_client.hris.individuals.retrieve_many(
70-
options={"include": ["string", "string", "string"]},
71-
requests=[
72-
{"individual_id": "individual_id"},
73-
{"individual_id": "individual_id"},
74-
{"individual_id": "individual_id"},
75-
],
66+
options={"include": ["string"]},
67+
requests=[{"individual_id": "individual_id"}],
7668
)
7769
assert_matches_type(AsyncResponsesPage[IndividualResponse], individual, path=["response"])
7870

tests/api_resources/payroll/test_pay_groups.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def test_method_list(self, client: Finch) -> None:
6565
def test_method_list_with_all_params(self, client: Finch) -> None:
6666
pay_group = client.payroll.pay_groups.list(
6767
individual_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
68-
pay_frequencies=["string", "string", "string"],
68+
pay_frequencies=["string"],
6969
)
7070
assert_matches_type(SyncSinglePage[PayGroupListResponse], pay_group, path=["response"])
7171

@@ -140,7 +140,7 @@ async def test_method_list(self, async_client: AsyncFinch) -> None:
140140
async def test_method_list_with_all_params(self, async_client: AsyncFinch) -> None:
141141
pay_group = await async_client.payroll.pay_groups.list(
142142
individual_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
143-
pay_frequencies=["string", "string", "string"],
143+
pay_frequencies=["string"],
144144
)
145145
assert_matches_type(AsyncSinglePage[PayGroupListResponse], pay_group, path=["response"])
146146

tests/api_resources/sandbox/connections/test_accounts.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def test_method_create_with_all_params(self, client: Finch) -> None:
3434
company_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
3535
provider_id="provider_id",
3636
authentication_type="credential",
37-
products=["string", "string", "string"],
37+
products=["string"],
3838
)
3939
assert_matches_type(AccountCreateResponse, account, path=["response"])
4040

@@ -114,7 +114,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncFinch) ->
114114
company_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
115115
provider_id="provider_id",
116116
authentication_type="credential",
117-
products=["string", "string", "string"],
117+
products=["string"],
118118
)
119119
assert_matches_type(AccountCreateResponse, account, path=["response"])
120120

0 commit comments

Comments
 (0)