Skip to content

Commit 4442caf

Browse files
committed
Removing NO_MORE_PAGES sentinel and just making None mean no more pages.
Also renaming next_page() to update_page() on Iterator and dropping any return value from that method. Also throwing an AttributeError if the page is unset on @Property access.
1 parent d87b77f commit 4442caf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/google-cloud-resource-manager/unit_tests/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def dummy_response():
6868
iterator = self._makeOne(client)
6969
iterator._get_next_page_response = dummy_response
7070

71-
iterator.next_page()
71+
iterator.update_page()
7272
page = iterator.page
7373
self.assertEqual(page.num_items, 1)
7474
project = iterator.next()

0 commit comments

Comments
 (0)