def test_simple_list_pager():
    (app, db, admin) = setup()
    (Model1, _) = create_models(db)

    class TestModelView(CustomModelView):
        simple_list_pager = True

        def get_count_query(self):
            assert False
    view = TestModelView(Model1)
    admin.add_view(view)
    (count, data) = view.get_list(0, None, None, None, None)
    ok_((count is None))
def test_simple_list_pager():
    (app, db, admin) = setup()
    (Model1, _) = create_models(db)

    class TestModelView(CustomModelView):
        simple_list_pager = True

        def get_count_query(self):
            assert False
    view = TestModelView(Model1)
    admin.add_view(view)
    (count, data) = view.get_list(0, None, None, None, None)
    ok_((count is None))