MCPcopy Create free account
hub / github.com/zzzeek/sqlalchemy / test_aggregate_strings_order_by

Method test_aggregate_strings_order_by

test/sql/test_functions.py:301–311  ·  view source on GitHub ↗
(self, expected_sql, dialect)

Source from the content-addressed store, hash-verified

299 ),
300 )
301 def test_aggregate_strings_order_by(self, expected_sql, dialect):
302 t = table("t", column("value", String), column("ordering", String))
303 stmt = select(
304 func.aggregate_strings(t.c.value, ",").aggregate_order_by(
305 t.c.ordering.desc()
306 )
307 )
308
309 self.assert_compile(
310 stmt, expected_sql, dialect=dialect, render_postcompile=True
311 )
312
313 def test_cube_operators(self):
314 t = table(

Callers

nothing calls this directly

Calls 7

tableFunction · 0.90
columnFunction · 0.90
selectFunction · 0.90
aggregate_stringsMethod · 0.80
assert_compileMethod · 0.80
aggregate_order_byMethod · 0.45
descMethod · 0.45

Tested by

no test coverage detected