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

Method test_scalar_select

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

Source from the content-addressed store, hash-verified

2989 assert not literal_column("x = y")._is_implicitly_boolean
2990
2991 def test_scalar_select(self):
2992 t = self.table1
2993 expr = select(t.c.myid).where(t.c.myid > 5).scalar_subquery()
2994 self.assert_compile(
2995 not_(expr),
2996 "NOT (SELECT mytable.myid FROM mytable "
2997 "WHERE mytable.myid > :myid_1)",
2998 params={"myid_1": 5},
2999 )
3000
3001 def test_scalar_values(self):
3002 t = self.table1

Callers

nothing calls this directly

Calls 5

not_Function · 0.90
selectFunction · 0.85
assert_compileMethod · 0.80
scalar_subqueryMethod · 0.45
whereMethod · 0.45

Tested by

no test coverage detected