MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_update_6

Method test_update_6

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

Source from the content-addressed store, hash-verified

538 )
539
540 def test_update_6(self):
541 table1 = self.tables.mytable
542
543 self.assert_compile(
544 update(table1)
545 .where(table1.c.myid == 12)
546 .values(
547 {table1.c.name: table1.c.myid},
548 ),
549 "UPDATE mytable "
550 "SET name=mytable.myid, description=:description "
551 "WHERE mytable.myid = :myid_1",
552 params={"description": "test"},
553 checkparams={"description": "test", "myid_1": 12},
554 )
555
556 def test_update_7(self):
557 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