Skip to content

Commit 3fb22d6

Browse files
committed
add retained page size test
1 parent 62ca060 commit 3fb22d6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/integration/test_feeds.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,20 @@ 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+
115+
102116
def test_feed_cursor(client, a_collection):
103117
source = client.query(
104118
fql("${col}.all().map(.n).toStream()", col=a_collection)).data

0 commit comments

Comments
 (0)