MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_expand_update_update_values

Method test_expand_update_update_values

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

Source from the content-addressed store, hash-verified

1855
1856 @testing.variation("keytype", ["attr", "string"])
1857 def test_expand_update_update_values(self, expand_update, keytype):
1858 A = expand_update
1859 self.assert_compile(
1860 update(A).values({"xy" if keytype.string else A.xy: Point(5, 6)}),
1861 "UPDATE a SET x=:x, y=:y",
1862 checkparams={"x": 5, "y": 6},
1863 )
1864
1865 #####################################################
1866

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected