MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_scalar_select

Method test_scalar_select

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

Source from the content-addressed store, hash-verified

3180 assert not literal_column("x = y")._is_implicitly_boolean
3181
3182 def test_scalar_select(self):
3183 t = self.table1
3184 expr = select(t.c.myid).where(t.c.myid > 5).scalar_subquery()
3185 self.assert_compile(
3186 not_(expr),
3187 "NOT (SELECT mytable.myid FROM mytable "
3188 "WHERE mytable.myid > :myid_1)",
3189 params={"myid_1": 5},
3190 )
3191
3192 def test_scalar_values(self):
3193 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