8000 Fix broken datastore test_cursor_paging. (#1457) · micheldavid/python-docs-samples@d9c5a10 · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit d9c5a10

Browse files
SurferJeffAtGoogleJon Wayne Parrott
authored andcommitted
Fix broken datastore test_cursor_paging. (GoogleCloudPlatform#1457)
When there are only 6 entities being retrieved, and the page size is 5, then the second page will not have a next cursor because all entities have been retrieved. Also, ignore *sponge_log.xml which are test log files.
1 parent f375231 commit d9c5a10

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ secrets.tar
2020
junit.xml
2121
credentials.dat
2222
.nox
23-
.vscode/
23+
.vscode/
24+
*sponge_log.xml

datastore/cloud-client/snippets_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ def _():
147147
assert len(page_one) == 5
148148
assert len(page_two)
149149
assert cursor_one
150-
assert cursor_two
151150

152151
@eventually_consistent.mark
153152
def test_property_filter(self, client):

0 commit comments

Comments
 (0)
0