1010from cloudflare import Cloudflare , AsyncCloudflare
1111from tests .utils import assert_matches_type
1212from cloudflare ._utils import parse_date
13- from cloudflare .pagination import SyncCursorLimitPagination , AsyncCursorLimitPagination
13+ from cloudflare .pagination import SyncCursorPaginationAfter , AsyncCursorPaginationAfter
1414from cloudflare .types .accounts .logs import AuditListResponse
1515
1616base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
@@ -27,7 +27,7 @@ def test_method_list(self, client: Cloudflare) -> None:
2727 before = parse_date ("2024-10-31" ),
2828 since = parse_date ("2024-10-30" ),
2929 )
30- assert_matches_type (SyncCursorLimitPagination [AuditListResponse ], audit , path = ["response" ])
30+ assert_matches_type (SyncCursorPaginationAfter [AuditListResponse ], audit , path = ["response" ])
3131
3232 @pytest .mark .skip (reason = "TODO:investigate broken test" )
3333 @parametrize
@@ -61,7 +61,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
6161 zone_id = {"not" : ["string" ]},
6262 zone_name = {"not" : ["example.com" ]},
6363 )
64- assert_matches_type (SyncCursorLimitPagination [AuditListResponse ], audit , path = ["response" ])
64+ assert_matches_type (SyncCursorPaginationAfter [AuditListResponse ], audit , path = ["response" ])
6565
6666 @pytest .mark .skip (reason = "TODO:investigate broken test" )
6767 @parametrize
@@ -75,7 +75,7 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
7575 assert response .is_closed is True
7676 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
7777 audit = response .parse ()
78- assert_matches_type (SyncCursorLimitPagination [AuditListResponse ], audit , path = ["response" ])
78+ assert_matches_type (SyncCursorPaginationAfter [AuditListResponse ], audit , path = ["response" ])
7979
8080 @pytest .mark .skip (reason = "TODO:investigate broken test" )
8181 @parametrize
@@ -89,7 +89,7 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
8989 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
9090
9191 audit = response .parse ()
92- assert_matches_type (SyncCursorLimitPagination [AuditListResponse ], audit , path = ["response" ])
92+ assert_matches_type (SyncCursorPaginationAfter [AuditListResponse ], audit , path = ["response" ])
9393
9494 assert cast (Any , response .is_closed ) is True
9595
@@ -117,7 +117,7 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None:
117117 before = parse_date ("2024-10-31" ),
118118 since = parse_date ("2024-10-30" ),
119119 )
120- assert_matches_type (AsyncCursorLimitPagination [AuditListResponse ], audit , path = ["response" ])
120+ assert_matches_type (AsyncCursorPaginationAfter [AuditListResponse ], audit , path = ["response" ])
121121
122122 @pytest .mark .skip (reason = "TODO:investigate broken test" )
123123 @parametrize
@@ -151,7 +151,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
151151 zone_id = {"not" : ["string" ]},
152152 zone_name = {"not" : ["example.com" ]},
153153 )
154- assert_matches_type (AsyncCursorLimitPagination [AuditListResponse ], audit , path = ["response" ])
154+ assert_matches_type (AsyncCursorPaginationAfter [AuditListResponse ], audit , path = ["response" ])
155155
156156 @pytest .mark .skip (reason = "TODO:investigate broken test" )
157157 @parametrize
@@ -165,7 +165,7 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
165165 assert response .is_closed is True
166166 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
167167 audit = await response .parse ()
168- assert_matches_type (AsyncCursorLimitPagination [AuditListResponse ], audit , path = ["response" ])
168+ assert_matches_type (AsyncCursorPaginationAfter [AuditListResponse ], audit , path = ["response" ])
169169
170170 @pytest .mark .skip (reason = "TODO:investigate broken test" )
171171 @parametrize
@@ -179,7 +179,7 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
179179 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
180180
181181 audit = await response .parse ()
182- assert_matches_type (AsyncCursorLimitPagination [AuditListResponse ], audit , path = ["response" ])
182+ assert_matches_type (AsyncCursorPaginationAfter [AuditListResponse ], audit , path = ["response" ])
183183
184184 assert cast (Any , response .is_closed ) is True
185185
0 commit comments