Skip to content

Commit 03a9546

Browse files
chore(tests): update test examples (#118)
1 parent 7b68074 commit 03a9546

File tree

2 files changed

+22
-16
lines changed

2 files changed

+22
-16
lines changed

tests/api_resources/hris/benefits/test_individuals.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class TestIndividuals:
2929
def test_method_enroll_many(self, client: Finch) -> None:
3030
individual = client.hris.benefits.individuals.enroll_many(
3131
"string",
32-
individuals=[{}, {}, {}],
32+
individuals=[{}],
3333
)
3434
assert_matches_type(SyncSinglePage[EnrolledIndividual], individual, path=["response"])
3535

@@ -80,7 +80,7 @@ class TestAsyncIndividuals:
8080
async def test_method_enroll_many(self, client: AsyncFinch) -> None:
8181
individual = await client.hris.benefits.individuals.enroll_many(
8282
"string",
83-
individuals=[{}, {}, {}],
83+
individuals=[{}],
8484
)
8585
assert_matches_type(AsyncSinglePage[EnrolledIndividual], individual, path=["response"])
8686

tests/api_resources/test_request_forwarding.py

+20-14
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,22 @@ class TestRequestForwarding:
2222
@parametrize
2323
def test_method_forward(self, client: Finch) -> None:
2424
request_forwarding = client.request_forwarding.forward(
25-
method="string",
26-
route="string",
25+
method="POST",
26+
route="/people/search",
2727
)
2828
assert_matches_type(RequestForwardingForwardResponse, request_forwarding, path=["response"])
2929

3030
@parametrize
3131
def test_method_forward_with_all_params(self, client: Finch) -> None:
3232
request_forwarding = client.request_forwarding.forward(
33-
method="string",
34-
route="string",
35-
data="string",
36-
headers={},
37-
params={},
33+
method="POST",
34+
route="/people/search",
35+
data=None,
36+
headers={"content-type": "application/json"},
37+
params={
38+
"showInactive": True,
39+
"humanReadable": True,
40+
},
3841
)
3942
assert_matches_type(RequestForwardingForwardResponse, request_forwarding, path=["response"])
4043

@@ -47,18 +50,21 @@ class TestAsyncRequestForwarding:
4750
@parametrize
4851
async def test_method_forward(self, client: AsyncFinch) -> None:
4952
request_forwarding = await client.request_forwarding.forward(
50-
method="string",
51-
route="string",
53+
method="POST",
54+
route="/people/search",
5255
)
5356
assert_matches_type(RequestForwardingForwardResponse, request_forwarding, path=["response"])
5457

5558
@parametrize
5659
async def test_method_forward_with_all_params(self, client: AsyncFinch) -> None:
5760
request_forwarding = await client.request_forwarding.forward(
58-
method="string",
59-
route="string",
60-
data="string",
61-
headers={},
62-
params={},
61+
method="POST",
62+
route="/people/search",
63+
data=None,
64+
headers={"content-type": "application/json"},
65+
params={
66+
"showInactive": True,
67+
"humanReadable": True,
68+
},
6369
)
6470
assert_matches_type(RequestForwardingForwardResponse, request_forwarding, path=["response"])

0 commit comments

Comments
 (0)