예제 #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"}])