Cleaned code
This commit is contained in:
parent
083e1ce4a1
commit
01309e3124
@ -11,16 +11,20 @@ CPL Python integrated Queries
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__title__ = 'cpl_query.base'
|
__title__ = "cpl_query.base"
|
||||||
__author__ = 'Sven Heidemann'
|
__author__ = "Sven Heidemann"
|
||||||
__license__ = 'MIT'
|
__license__ = "MIT"
|
||||||
__copyright__ = 'Copyright (c) 2021 - 2023 sh-edraft.de'
|
__copyright__ = "Copyright (c) 2021 - 2023 sh-edraft.de"
|
||||||
__version__ = '2023.4.0'
|
__version__ = "2023.4.0"
|
||||||
|
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
|
||||||
|
|
||||||
# imports:
|
# imports:
|
||||||
|
from .default_lambda import default_lambda
|
||||||
|
from .ordered_queryable import OrderedQueryable
|
||||||
|
from .ordered_queryable_abc import OrderedQueryableABC
|
||||||
|
from .queryable_abc import QueryableABC
|
||||||
|
from .sequence import Sequence
|
||||||
|
|
||||||
VersionInfo = namedtuple('VersionInfo', 'major minor micro')
|
VersionInfo = namedtuple("VersionInfo", "major minor micro")
|
||||||
version_info = VersionInfo(major='2023', minor='4', micro='0')
|
version_info = VersionInfo(major="2023", minor="4", micro="0")
|
||||||
|
@ -251,8 +251,6 @@ class IterableQueryTestCase(unittest.TestCase):
|
|||||||
self.assertEqual(res, s_res)
|
self.assertEqual(res, s_res)
|
||||||
|
|
||||||
def test_then_by_descending(self):
|
def test_then_by_descending(self):
|
||||||
x = List(int, List.range(1, 10)).order_by(lambda x: x).th
|
|
||||||
|
|
||||||
res = (
|
res = (
|
||||||
self._tests.order_by_descending(lambda user: user.address.street)
|
self._tests.order_by_descending(lambda user: user.address.street)
|
||||||
.then_by_descending(lambda user: user.address.nr)
|
.then_by_descending(lambda user: user.address.nr)
|
||||||
|
Loading…
Reference in New Issue
Block a user