MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_scalar_select_no_coercion

Method test_scalar_select_no_coercion

test/sql/test_roles.py:177–192  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

175 literal(column("q"))
176
177 def test_scalar_select_no_coercion(self):
178 with testing.expect_warnings(
179 "implicitly coercing SELECT object to scalar subquery"
180 ):
181 expect(
182 roles.LabeledColumnExprRole,
183 select(column("q")),
184 )
185
186 with testing.expect_warnings(
187 "implicitly coercing SELECT object to scalar subquery"
188 ):
189 expect(
190 roles.LabeledColumnExprRole,
191 select(column("q")).alias(),
192 )
193
194 def test_values_advice(self):
195 value_expr = values(

Callers

nothing calls this directly

Calls 4

expectFunction · 0.90
selectFunction · 0.90
columnFunction · 0.90
aliasMethod · 0.45

Tested by

no test coverage detected