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

Method test_non_functions

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

Source from the content-addressed store, hash-verified

655 )
656
657 def test_non_functions(self):
658 expr = func.cast("foo", Integer)
659 self.assert_compile(expr, "CAST(:param_1 AS INTEGER)")
660
661 expr = func.extract("year", datetime.date(2010, 12, 5))
662 self.assert_compile(expr, "EXTRACT(year FROM :param_1)")
663
664 def test_select_method_one(self):
665 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