Skip to content

Commit 8e81d76

Browse files
chore(tests): improve enum examples (#645)
1 parent e6e04cc commit 8e81d76

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/api_resources/hris/benefits/test_individuals.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ def test_method_enroll_many_with_all_params(self, client: Finch) -> None:
4343
"catch_up": False,
4444
"company_contribution": {
4545
"amount": 400,
46-
"type": "fixed",
46+
"type": "percent",
4747
},
4848
"effective_date": parse_date("2025-01-01"),
4949
"employee_deduction": {
5050
"amount": 1000,
51-
"type": "fixed",
51+
"type": "percent",
5252
},
5353
},
5454
"individual_id": "d02a6346-1f08-4312-a064-49ff3cafaa7a",
@@ -241,12 +241,12 @@ async def test_method_enroll_many_with_all_params(self, async_client: AsyncFinch
241241
"catch_up": False,
242242
"company_contribution": {
243243
"amount": 400,
244-
"type": "fixed",
244+
"type": "percent",
245245
},
246246
"effective_date": parse_date("2025-01-01"),
247247
"employee_deduction": {
248248
"amount": 1000,
249-
"type": "fixed",
249+
"type": "percent",
250250
},
251251
},
252252
"individual_id": "d02a6346-1f08-4312-a064-49ff3cafaa7a",

tests/api_resources/sandbox/connections/test_accounts.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def test_method_update(self, client: Finch) -> None:
7272
@parametrize
7373
def test_method_update_with_all_params(self, client: Finch) -> None:
7474
account = client.sandbox.connections.accounts.update(
75-
connection_status="pending",
75+
connection_status="reauth",
7676
)
7777
assert_matches_type(AccountUpdateResponse, account, path=["response"])
7878

@@ -152,7 +152,7 @@ async def test_method_update(self, async_client: AsyncFinch) -> None:
152152
@parametrize
153153
async def test_method_update_with_all_params(self, async_client: AsyncFinch) -> None:
154154
account = await async_client.sandbox.connections.accounts.update(
155-
connection_status="pending",
155+
connection_status="reauth",
156156
)
157157
assert_matches_type(AccountUpdateResponse, account, path=["response"])
158158

0 commit comments

Comments
 (0)