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

Method test_column_interpolation

test/sql/test_tstrings_py314.py:67–71  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

65 )
66
67 def test_column_interpolation(self):
68 stmt = tstring(t"SELECT {table1.c.myid}, {table1.c.name} FROM mytable")
69 self.assert_compile(
70 stmt, "SELECT mytable.myid, mytable.name FROM mytable"
71 )
72
73 def test_column_interpolation_labeled(self):
74 # Labels are not supported inside tstring as they're ambiguous

Callers

nothing calls this directly

Calls 2

tstringFunction · 0.90
assert_compileMethod · 0.80

Tested by

no test coverage detected