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

Method test_expand_update_insert_values

test/ext/test_hybrid.py:1848–1854  ·  view source on GitHub ↗
(self, expand_update, keytype)

Source from the content-addressed store, hash-verified

1846
1847 @testing.variation("keytype", ["attr", "string"])
1848 def test_expand_update_insert_values(self, expand_update, keytype):
1849 A = expand_update
1850 self.assert_compile(
1851 insert(A).values({"xy" if keytype.string else A.xy: Point(5, 6)}),
1852 "INSERT INTO a (x, y) VALUES (:x, :y)",
1853 checkparams={"x": 5, "y": 6},
1854 )
1855
1856 @testing.variation("keytype", ["attr", "string"])
1857 def test_expand_update_update_values(self, expand_update, keytype):

Callers

nothing calls this directly

Calls 4

insertFunction · 0.90
assert_compileMethod · 0.80
PointClass · 0.70
valuesMethod · 0.45

Tested by

no test coverage detected