MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_asc

Method test_asc

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

Source from the content-addressed store, hash-verified

970 self._test_exception(stmt, "foobar")
971
972 def test_asc(self):
973 stmt = select(table1.c.myid).order_by(asc("name"), "description")
974 self.assert_compile(
975 stmt,
976 "SELECT mytable.myid FROM mytable "
977 "ORDER BY mytable.name ASC, mytable.description",
978 )
979
980 def test_group_by_subquery(self):
981 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