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

Method test_column_subquery_exists

test/sql/test_selectable.py:3946–3954  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3944 assert ta.c.x not in mapping
3945
3946 def test_column_subquery_exists(self):
3947 t = self._fixture()
3948 s = exists().where(t.c.x == 5).select()
3949 mapping = self._mapping(s)
3950 assert t.c.x not in mapping
3951 eq_(
3952 [type(entry[-1]) for entry in s.compile()._result_columns],
3953 [Boolean],
3954 )
3955
3956 def test_plain_exists(self):
3957 expr = exists(text("1"))

Callers

nothing calls this directly

Calls 7

_fixtureMethod · 0.95
_mappingMethod · 0.95
existsFunction · 0.90
eq_Function · 0.90
selectMethod · 0.45
whereMethod · 0.45
compileMethod · 0.45

Tested by

no test coverage detected