Skip to content

Commit

Permalink
Removing NO_MORE_PAGES sentinel and just making None mean no more pages.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dhermes committed Oct 16, 2016
1 parent d87b77f commit 4442caf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def dummy_response():
iterator = self._makeOne(client)
iterator._get_next_page_response = dummy_response

iterator.next_page()
iterator.update_page()
page = iterator.page
self.assertEqual(page.num_items, 1)
project = iterator.next()
Expand Down

0 comments on commit 4442caf

Please sign in to comment.