Uh oh!
There was an error while loading. Please reload this page.
Updating list_sinks() to Iterator pattern. - #2652
Conversation
dhermes
commented
Oct 31, 2016
@tseaver@daspecster PTAL this is ready to go |
d4cd270 to
035ec7fCompare| :type resource: dict | ||
| :param resource: one entry resource from API response | ||
| :param resource: One entry resource from API response. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| token = iterator.next_page_token | ||
| self.assertEqual(sinks, RETURNED['sinks']) | ||
| # First check the token. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
daspecster
commented
Oct 31, 2016
This LGTM as well. |
035ec7f to
c351c05Compare| token = iterator.next_page_token | ||
| self.assertEqual(sinks, SINKS) | ||
| # First check the token. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| iterator = client.list_sinks() | ||
| page = six.next(iterator.pages) | ||
| sinks = list(page) | ||
| token = iterator.next_page_token |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Updating list_sinks() to Iterator pattern.
Updating list_sinks() to Iterator pattern.
NOTE: Has #2651 as diffbase. Unit test changes will be forthcoming.