def test_cursor_paging(self, waiting_client): for n in range(6): waiting_client.entities_to_delete.append( snippets.insert(waiting_client)) page_one, cursor_one, page_two, cursor_two = snippets.cursor_paging( waiting_client) assert len(page_one) == 5 assert len(page_two) == 1 assert cursor_one assert cursor_two
def test_cursor_paging(self, client): for n in range(6): client.entities_to_delete.append(snippets.insert(client)) @eventually_consistent.call def _(): results = snippets.cursor_paging(client) page_one, cursor_one, page_two, cursor_two = results assert len(page_one) == 5 assert len(page_two) assert cursor_one
def test_cursor_paging(self, client): for n in range(6): client.entities_to_delete.append( snippets.insert(client)) @eventually_consistent.call def _(): results = snippets.cursor_paging(client) page_one, cursor_one, page_two, cursor_two = results assert len(page_one) == 5 assert len(page_two) assert cursor_one
def test_cursor_paging(self, client): for n in range(6): client.entities_to_delete.append(snippets.insert(client)) @backoff.on_exception(backoff.expo, AssertionError, max_time=240) def run_sample(): results = snippets.cursor_paging(client) page_one, cursor_one, page_two, cursor_two = results assert len(page_one) == 5 assert len(page_two) assert cursor_one run_sample()
def test_update(self, client): task = snippets.insert(client) client.entities_to_delete.append(task) assert task