MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_non_functions

Method test_non_functions

test/sql/test_functions.py:717–722  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

715 )
716
717 def test_non_functions(self):
718 expr = func.cast("foo", Integer)
719 self.assert_compile(expr, "CAST(:param_1 AS INTEGER)")
720
721 expr = func.extract("year", datetime.date(2010, 12, 5))
722 self.assert_compile(expr, "EXTRACT(year FROM :param_1)")
723
724 def test_select_method_one(self):
725 expr = func.rows("foo")

Callers

nothing calls this directly

Calls 4

assert_compileMethod · 0.80
extractMethod · 0.80
castMethod · 0.45
dateMethod · 0.45

Tested by

no test coverage detected