MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_custom_args

Method test_custom_args

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

Source from the content-addressed store, hash-verified

525 self.assert_compile(func.buf4(), "BufferFour()")
526
527 def test_custom_args(self):
528 class myfunc(GenericFunction):
529 inherit_cache = True
530
531 self.assert_compile(
532 myfunc(1, 2, 3), "myfunc(:myfunc_1, :myfunc_2, :myfunc_3)"
533 )
534
535 def test_namespacing_conflicts(self):
536 self.assert_compile(func.text("foo"), "text(:text_1)")

Callers

nothing calls this directly

Calls 2

assert_compileMethod · 0.80
myfuncClass · 0.70

Tested by

no test coverage detected