MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_update_7

Method test_update_7

test/sql/test_update.py:556–567  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

554 )
555
556 def test_update_7(self):
557 table1 = self.tables.mytable
558
559 self.assert_compile(
560 update(table1)
561 .where(table1.c.myid == 12)
562 .values({table1.c.myid: 9}),
563 "UPDATE mytable "
564 "SET myid=:myid, description=:description "
565 "WHERE mytable.myid = :myid_1",
566 params={"myid_1": 12, "myid": 9, "description": "test"},
567 )
568
569 def test_update_8(self):
570 table1 = self.tables.mytable

Callers

nothing calls this directly

Calls 4

updateFunction · 0.90
assert_compileMethod · 0.80
valuesMethod · 0.45
whereMethod · 0.45

Tested by

no test coverage detected