Skip to content

Commit b746d12

Browse files
chore(internal): codegen related update
1 parent 686b27e commit b746d12

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

tests/api_resources/hris/test_directory.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from tests.utils import assert_matches_type
1212
from finch.pagination import SyncIndividualsPage, AsyncIndividualsPage
1313
from finch.types.hris import IndividualInDirectory
14+
from finch.types.hris.directory_list_individuals_params import UnnamedTypeWithNoPropertyInfoOrParent0
1415

1516
# pyright: reportDeprecated=false
1617

@@ -59,7 +60,7 @@ def test_method_list_individuals(self, client: Finch) -> None:
5960
with pytest.warns(DeprecationWarning):
6061
directory = client.hris.directory.list_individuals()
6162

62-
assert_matches_type(SyncIndividualsPage[IndividualInDirectory], directory, path=["response"])
63+
assert_matches_type(UnnamedTypeWithNoPropertyInfoOrParent0, directory, path=["response"])
6364

6465
@parametrize
6566
def test_method_list_individuals_with_all_params(self, client: Finch) -> None:
@@ -70,7 +71,7 @@ def test_method_list_individuals_with_all_params(self, client: Finch) -> None:
7071
offset=0,
7172
)
7273

73-
assert_matches_type(SyncIndividualsPage[IndividualInDirectory], directory, path=["response"])
74+
assert_matches_type(UnnamedTypeWithNoPropertyInfoOrParent0, directory, path=["response"])
7475

7576
@parametrize
7677
def test_raw_response_list_individuals(self, client: Finch) -> None:
@@ -80,7 +81,7 @@ def test_raw_response_list_individuals(self, client: Finch) -> None:
8081
assert response.is_closed is True
8182
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
8283
directory = response.parse()
83-
assert_matches_type(SyncIndividualsPage[IndividualInDirectory], directory, path=["response"])
84+
assert_matches_type(UnnamedTypeWithNoPropertyInfoOrParent0, directory, path=["response"])
8485

8586
@parametrize
8687
def test_streaming_response_list_individuals(self, client: Finch) -> None:
@@ -90,7 +91,7 @@ def test_streaming_response_list_individuals(self, client: Finch) -> None:
9091
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
9192

9293
directory = response.parse()
93-
assert_matches_type(SyncIndividualsPage[IndividualInDirectory], directory, path=["response"])
94+
assert_matches_type(UnnamedTypeWithNoPropertyInfoOrParent0, directory, path=["response"])
9495

9596
assert cast(Any, response.is_closed) is True
9697

@@ -139,7 +140,7 @@ async def test_method_list_individuals(self, async_client: AsyncFinch) -> None:
139140
with pytest.warns(DeprecationWarning):
140141
directory = await async_client.hris.directory.list_individuals()
141142

142-
assert_matches_type(AsyncIndividualsPage[IndividualInDirectory], directory, path=["response"])
143+
assert_matches_type(UnnamedTypeWithNoPropertyInfoOrParent0, directory, path=["response"])
143144

144145
@parametrize
145146
async def test_method_list_individuals_with_all_params(self, async_client: AsyncFinch) -> None:
@@ -150,7 +151,7 @@ async def test_method_list_individuals_with_all_params(self, async_client: Async
150151
offset=0,
151152
)
152153

153-
assert_matches_type(AsyncIndividualsPage[IndividualInDirectory], directory, path=["response"])
154+
assert_matches_type(UnnamedTypeWithNoPropertyInfoOrParent0, directory, path=["response"])
154155

155156
@parametrize
156157
async def test_raw_response_list_individuals(self, async_client: AsyncFinch) -> None:
@@ -160,7 +161,7 @@ async def test_raw_response_list_individuals(self, async_client: AsyncFinch) ->
160161
assert response.is_closed is True
161162
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
162163
directory = response.parse()
163-
assert_matches_type(AsyncIndividualsPage[IndividualInDirectory], directory, path=["response"])
164+
assert_matches_type(UnnamedTypeWithNoPropertyInfoOrParent0, directory, path=["response"])
164165

165166
@parametrize
166167
async def test_streaming_response_list_individuals(self, async_client: AsyncFinch) -> None:
@@ -170,6 +171,6 @@ async def test_streaming_response_list_individuals(self, async_client: AsyncFinc
170171
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
171172

172173
directory = await response.parse()
173-
assert_matches_type(AsyncIndividualsPage[IndividualInDirectory], directory, path=["response"])
174+
assert_matches_type(UnnamedTypeWithNoPropertyInfoOrParent0, directory, path=["response"])
174175

175176
assert cast(Any, response.is_closed) is True

0 commit comments

Comments
 (0)