Skip to content

Commit 2b2d12b

Browse files
committed
add retained page size test
1 parent 62ca060 commit 2b2d12b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/integration/test_feeds.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,19 @@ def test_feed_start_ts(client, a_collection):
9999
assert nums == list(range(1, 64))
100100

101101

102+
def test_page_size_is_retained_across_requests(client, a_collection):
103+
source = client.query(
104+
fql("${col}.all().map(.n).toStream()", col=a_collection)).data
105+
_create_docs(client, a_collection, 0, 15)
106+
107+
feed = client.feed(source, FeedOptions(page_size=5))
108+
page_count = 0
109+
for page in feed:
110+
page_count = page_count + 1
111+
assert len(page) == 5
112+
113+
assert page_count == 3
114+
102115
def test_feed_cursor(client, a_collection):
103116
source = client.query(
104117
fql("${col}.all().map(.n).toStream()", col=a_collection)).data

0 commit comments

Comments
 (0)