示例#1
0
 def foobar():
     return Cursor([{
         "bar": 1
     }, {
         "bar": 3
     }, {
         "bar": 2
     }, {
         "foo": 1
     }, {
         "foo": 3
     }, {
         "foo": 2
     }])
示例#2
0
 def foo_instance():
     return Cursor([1, 2, 3])
示例#3
0
def test_paginate_cursor(app):
    with app.test_request_context():
        assert paginate(Cursor([1, 2, 3]), skip=2).data == [3]
示例#4
0
 def bar():
     return Cursor([{"bar": 1}, {"bar": 3}, {"bar": 2}])
示例#5
0
 def foo():
     return Cursor([{"foo": 1}, {"foo": 3}, {"foo": 2}])
示例#6
0
 def foo():
     return Cursor([1, 2, 3])
示例#7
0
 def paginate_1():
     return Cursor([{"foo": "Ber"}, {"foo": "foo"}, {"foo": "bar"}])