MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_in_table

Method test_in_table

test/sql/test_operators.py:4927–4934  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4925 )
4926
4927 def test_in_table(self):
4928 t = table("t", column("x"))
4929
4930 with expect_warnings(
4931 r"Coercing TableClause object into a select\(\) for use in "
4932 r"IN\(\); please pass a select\(\) construct explicitly",
4933 ):
4934 self.assert_compile(column("q").in_(t), "q IN (SELECT t.x FROM t)")
4935
4936 def test_in_table_alias(self):
4937 t = table("t", column("x"))

Callers

nothing calls this directly

Calls 5

tableFunction · 0.90
columnFunction · 0.90
expect_warningsFunction · 0.90
assert_compileMethod · 0.80
in_Method · 0.45

Tested by

no test coverage detected