1515 DeploymentUpdateResponse ,
1616 DeploymentRetrieveResponse ,
1717)
18+ from replicate .pagination import SyncCursorURLPage , AsyncCursorURLPage
1819
1920base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
2021
@@ -192,7 +193,7 @@ def test_path_params_update(self, client: ReplicateClient) -> None:
192193 @parametrize
193194 def test_method_list (self , client : ReplicateClient ) -> None :
194195 deployment = client .deployments .list ()
195- assert_matches_type (DeploymentListResponse , deployment , path = ["response" ])
196+ assert_matches_type (SyncCursorURLPage [ DeploymentListResponse ] , deployment , path = ["response" ])
196197
197198 @pytest .mark .skip ()
198199 @parametrize
@@ -202,7 +203,7 @@ def test_raw_response_list(self, client: ReplicateClient) -> None:
202203 assert response .is_closed is True
203204 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
204205 deployment = response .parse ()
205- assert_matches_type (DeploymentListResponse , deployment , path = ["response" ])
206+ assert_matches_type (SyncCursorURLPage [ DeploymentListResponse ] , deployment , path = ["response" ])
206207
207208 @pytest .mark .skip ()
208209 @parametrize
@@ -212,7 +213,7 @@ def test_streaming_response_list(self, client: ReplicateClient) -> None:
212213 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
213214
214215 deployment = response .parse ()
215- assert_matches_type (DeploymentListResponse , deployment , path = ["response" ])
216+ assert_matches_type (SyncCursorURLPage [ DeploymentListResponse ] , deployment , path = ["response" ])
216217
217218 assert cast (Any , response .is_closed ) is True
218219
@@ -470,7 +471,7 @@ async def test_path_params_update(self, async_client: AsyncReplicateClient) -> N
470471 @parametrize
471472 async def test_method_list (self , async_client : AsyncReplicateClient ) -> None :
472473 deployment = await async_client .deployments .list ()
473- assert_matches_type (DeploymentListResponse , deployment , path = ["response" ])
474+ assert_matches_type (AsyncCursorURLPage [ DeploymentListResponse ] , deployment , path = ["response" ])
474475
475476 @pytest .mark .skip ()
476477 @parametrize
@@ -480,7 +481,7 @@ async def test_raw_response_list(self, async_client: AsyncReplicateClient) -> No
480481 assert response .is_closed is True
481482 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
482483 deployment = await response .parse ()
483- assert_matches_type (DeploymentListResponse , deployment , path = ["response" ])
484+ assert_matches_type (AsyncCursorURLPage [ DeploymentListResponse ] , deployment , path = ["response" ])
484485
485486 @pytest .mark .skip ()
486487 @parametrize
@@ -490,7 +491,7 @@ async def test_streaming_response_list(self, async_client: AsyncReplicateClient)
490491 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
491492
492493 deployment = await response .parse ()
493- assert_matches_type (DeploymentListResponse , deployment , path = ["response" ])
494+ assert_matches_type (AsyncCursorURLPage [ DeploymentListResponse ] , deployment , path = ["response" ])
494495
495496 assert cast (Any , response .is_closed ) is True
496497
0 commit comments