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

Method test_scalar_values

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

Source from the content-addressed store, hash-verified

2999 )
3000
3001 def test_scalar_values(self):
3002 t = self.table1
3003 expr = values(t.c.myid).data([(7,), (42,)]).scalar_values()
3004 self.assert_compile(
3005 not_(expr),
3006 "NOT (VALUES (:param_1), (:param_2))",
3007 params={"param_1": 7, "param_2": 42},
3008 )
3009
3010
3011class 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