99
1010from cloudflare import Cloudflare , AsyncCloudflare
1111from tests .utils import assert_matches_type
12- from cloudflare .pagination import SyncCursorPaginationAfter , AsyncCursorPaginationAfter
12+ from cloudflare .pagination import SyncCursorLimitPagination , AsyncCursorLimitPagination
1313from cloudflare .types .kv .namespaces import (
1414 Key ,
1515 KeyBulkGetResponse ,
@@ -31,7 +31,7 @@ def test_method_list(self, client: Cloudflare) -> None:
3131 namespace_id = "0f2ac74b498b48028cb68387c421e279" ,
3232 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
3333 )
34- assert_matches_type (SyncCursorPaginationAfter [Key ], key , path = ["response" ])
34+ assert_matches_type (SyncCursorLimitPagination [Key ], key , path = ["response" ])
3535
3636 @parametrize
3737 def test_method_list_with_all_params (self , client : Cloudflare ) -> None :
@@ -42,7 +42,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
4242 limit = 10 ,
4343 prefix = "My-Prefix" ,
4444 )
45- assert_matches_type (SyncCursorPaginationAfter [Key ], key , path = ["response" ])
45+ assert_matches_type (SyncCursorLimitPagination [Key ], key , path = ["response" ])
4646
4747 @parametrize
4848 def test_raw_response_list (self , client : Cloudflare ) -> None :
@@ -54,7 +54,7 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
5454 assert response .is_closed is True
5555 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
5656 key = response .parse ()
57- assert_matches_type (SyncCursorPaginationAfter [Key ], key , path = ["response" ])
57+ assert_matches_type (SyncCursorLimitPagination [Key ], key , path = ["response" ])
5858
5959 @parametrize
6060 def test_streaming_response_list (self , client : Cloudflare ) -> None :
@@ -66,7 +66,7 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
6666 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
6767
6868 key = response .parse ()
69- assert_matches_type (SyncCursorPaginationAfter [Key ], key , path = ["response" ])
69+ assert_matches_type (SyncCursorLimitPagination [Key ], key , path = ["response" ])
7070
7171 assert cast (Any , response .is_closed ) is True
7272
@@ -308,7 +308,7 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None:
308308 namespace_id = "0f2ac74b498b48028cb68387c421e279" ,
309309 account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
310310 )
311- assert_matches_type (AsyncCursorPaginationAfter [Key ], key , path = ["response" ])
311+ assert_matches_type (AsyncCursorLimitPagination [Key ], key , path = ["response" ])
312312
313313 @parametrize
314314 async def test_method_list_with_all_params (self , async_client : AsyncCloudflare ) -> None :
@@ -319,7 +319,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
319319 limit = 10 ,
320320 prefix = "My-Prefix" ,
321321 )
322- assert_matches_type (AsyncCursorPaginationAfter [Key ], key , path = ["response" ])
322+ assert_matches_type (AsyncCursorLimitPagination [Key ], key , path = ["response" ])
323323
324324 @parametrize
325325 async def test_raw_response_list (self , async_client : AsyncCloudflare ) -> None :
@@ -331,7 +331,7 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
331331 assert response .is_closed is True
332332 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
333333 key = await response .parse ()
334- assert_matches_type (AsyncCursorPaginationAfter [Key ], key , path = ["response" ])
334+ assert_matches_type (AsyncCursorLimitPagination [Key ], key , path = ["response" ])
335335
336336 @parametrize
337337 async def test_streaming_response_list (self , async_client : AsyncCloudflare ) -> None :
@@ -343,7 +343,7 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
343343 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
344344
345345 key = await response .parse ()
346- assert_matches_type (AsyncCursorPaginationAfter [Key ], key , path = ["response" ])
346+ assert_matches_type (AsyncCursorLimitPagination [Key ], key , path = ["response" ])
347347
348348 assert cast (Any , response .is_closed ) is True
349349
0 commit comments