def foobar(): return Cursor([{ "bar": 1 }, { "bar": 3 }, { "bar": 2 }, { "foo": 1 }, { "foo": 3 }, { "foo": 2 }])
def foo_instance(): return Cursor([1, 2, 3])
def test_paginate_cursor(app): with app.test_request_context(): assert paginate(Cursor([1, 2, 3]), skip=2).data == [3]
def bar(): return Cursor([{"bar": 1}, {"bar": 3}, {"bar": 2}])
def foo(): return Cursor([{"foo": 1}, {"foo": 3}, {"foo": 2}])
def foo(): return Cursor([1, 2, 3])
def paginate_1(): return Cursor([{"foo": "Ber"}, {"foo": "foo"}, {"foo": "bar"}])