rambleraptor commented on code in PR #3348:
URL: https://github.com/apache/iceberg-python/pull/3348#discussion_r3261156256
##########
tests/catalog/test_rest.py:
##########
@@ -479,6 +479,90 @@ def test_list_tables_200(rest_mock: Mocker) -> None:
assert RestCatalog("rest", uri=TEST_URI,
token=TEST_TOKEN).list_tables(namespace) == [("examples", "fooshare")]
+def test_list_tables_paginated_200(rest_mock: Mocker) -> None:
+ namespace = "examples"
+ # First page with next-page-token
+ rest_mock.get(
Review Comment:
small nit: consider some kind of helper function that attaches a new page to
the rest_mock
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]