MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_plain_exists_negate

Method test_plain_exists_negate

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

Source from the content-addressed store, hash-verified

3965 )
3966
3967 def test_plain_exists_negate(self):
3968 expr = ~exists(text("1"))
3969 eq_(type(expr.type), Boolean)
3970 eq_(
3971 [
3972 type(entry[-1])
3973 for entry in select(expr).compile()._result_columns
3974 ],
3975 [Boolean],
3976 )
3977
3978 def test_plain_exists_double_negate(self):
3979 expr = ~(~exists(text("1")))

Callers

nothing calls this directly

Calls 5

existsFunction · 0.90
textFunction · 0.90
eq_Function · 0.90
selectFunction · 0.90
compileMethod · 0.45

Tested by

no test coverage detected