MCPcopy Index your code
hub / github.com/zzzeek/sqlalchemy / test_render

Method test_render

test/sql/test_syntax_extensions.py:286–295  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

284 __dialect__ = "default"
285
286 def test_render(self):
287 t = Table(
288 "t1", MetaData(), Column("c1", Integer), Column("c2", Integer)
289 )
290
291 stmt = select(t).ext(ColumnExpressionExt(t.c.c1, t.c.c2))
292 self.assert_compile(
293 stmt,
294 "SELECT COLUMN EXPRESSIONS (t1.c1, t1.c2) t1.c1, t1.c2 FROM t1",
295 )
296
297 def test_adaptation(self):
298 t = Table(

Callers

nothing calls this directly

Calls 7

TableClass · 0.90
MetaDataClass · 0.90
ColumnClass · 0.90
selectFunction · 0.90
ColumnExpressionExtClass · 0.85
assert_compileMethod · 0.80
extMethod · 0.45

Tested by

no test coverage detected