MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_auto_proxy_make_new_values

Method test_auto_proxy_make_new_values

test/sql/test_values.py:141–163  ·  view source on GitHub ↗

test #10280

(self, _auto_proxy_fixture)

Source from the content-addressed store, hash-verified

139 )
140
141 def test_auto_proxy_make_new_values(self, _auto_proxy_fixture):
142 """test #10280"""
143
144 c1, c2, t, v1 = _auto_proxy_fixture
145
146 self.assert_compile(
147 select(v1.c.p),
148 "SELECT p FROM (VALUES (:param_1, :param_2), "
149 "(:param_3, :param_4))",
150 checkparams={
151 "param_1": 1,
152 "param_2": 2,
153 "param_3": 3,
154 "param_4": 4,
155 },
156 )
157
158 v2 = values(c1, c2).data([(5, 6)])
159 self.assert_compile(
160 select(v2.c.p),
161 "SELECT p FROM (VALUES (:param_1, :param_2))",
162 checkparams={"param_1": 5, "param_2": 6},
163 )
164
165 def test_column_quoting(self):
166 v1 = values(

Callers

nothing calls this directly

Calls 4

selectFunction · 0.90
valuesFunction · 0.90
assert_compileMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected