MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_column

Method test_column

test/sql/test_deprecations.py:190–198  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

188 eq_(stmt.froms, [t1])
189
190 def test_column(self):
191 stmt = select(column("x"))
192 with testing.expect_deprecated(
193 r"The Select.column\(\) method is deprecated and will be "
194 "removed in a future release."
195 ):
196 stmt = stmt.column(column("q"))
197
198 self.assert_compile(stmt, "SELECT x, q")
199
200 def test_append_column_after_replace_selectable(self):
201 basesel = select(literal_column("1").label("a"))

Callers

nothing calls this directly

Calls 4

selectFunction · 0.90
columnFunction · 0.90
assert_compileMethod · 0.80
columnMethod · 0.45

Tested by

no test coverage detected