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

Method test_annotation_dialect_specific

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

Source from the content-addressed store, hash-verified

353 self.assert_compile(fn, "coalesce(:coalesce_1, :coalesce_2)")
354
355 def test_annotation_dialect_specific(self):
356 fn = func.current_date()
357 self.assert_compile(fn, "CURRENT_DATE", dialect="sqlite")
358
359 fn = fn._annotate({"foo": "bar"})
360 self.assert_compile(fn, "CURRENT_DATE", dialect="sqlite")
361
362 def test_custom_default_namespace(self):
363 class myfunc(GenericFunction):

Callers

nothing calls this directly

Calls 3

current_dateMethod · 0.80
assert_compileMethod · 0.80
_annotateMethod · 0.45

Tested by

no test coverage detected