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

Method test_scalar_values

test/sql/test_operators.py:5198–5206  ·  view source on GitHub ↗
(self, t_fixture, any_all_operators)

Source from the content-addressed store, hash-verified

5196 )
5197
5198 def test_scalar_values(self, t_fixture, any_all_operators):
5199 t = t_fixture
5200 op, fn = any_all_operators
5201
5202 self.assert_compile(
5203 5 == fn(values(t.c.data).data([(1,), (42,)]).scalar_values()),
5204 f":param_1 = {op} (VALUES (:param_2), (:param_3))",
5205 checkparams={"param_1": 5, "param_2": 1, "param_3": 42},
5206 )
5207
5208 @testing.combinations(any_, all_, argnames="fn")
5209 def test_values_illegal(self, t_fixture, fn):

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected