MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_scalar_values

Method test_scalar_values

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

Source from the content-addressed store, hash-verified

3190 )
3191
3192 def test_scalar_values(self):
3193 t = self.table1
3194 expr = values(t.c.myid).data([(7,), (42,)]).scalar_values()
3195 self.assert_compile(
3196 not_(expr),
3197 "NOT (VALUES (:param_1), (:param_2))",
3198 params={"param_1": 7, "param_2": 42},
3199 )
3200
3201
3202class LikeTest(fixtures.TestBase, testing.AssertsCompiledSQL):

Callers

nothing calls this directly

Calls 5

valuesFunction · 0.90
not_Function · 0.90
scalar_valuesMethod · 0.80
assert_compileMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected