MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_asc

Method test_asc

test/sql/test_text.py:975–981  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

973 self._test_exception(stmt, "foobar")
974
975 def test_asc(self):
976 stmt = select(table1.c.myid).order_by(asc("name"), "description")
977 self.assert_compile(
978 stmt,
979 "SELECT mytable.myid FROM mytable "
980 "ORDER BY mytable.name ASC, mytable.description",
981 )
982
983 def test_group_by_subquery(self):
984 stmt = select(table1).alias()

Callers

nothing calls this directly

Calls 4

selectFunction · 0.90
ascFunction · 0.90
assert_compileMethod · 0.80
order_byMethod · 0.45

Tested by

no test coverage detected