MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_column

Method test_column

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

Source from the content-addressed store, hash-verified

307 eq_(stmt.froms, [t1])
308
309 def test_column(self):
310 stmt = select(column("x"))
311 with testing.expect_deprecated(
312 r"The Select.column\(\) method is deprecated and will be "
313 "removed in a future release."
314 ):
315 stmt = stmt.column(column("q"))
316
317 self.assert_compile(stmt, "SELECT x, q")
318
319 def test_append_column_after_replace_selectable(self):
320 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