MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_update_1

Method test_update_1

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

Source from the content-addressed store, hash-verified

487 )
488
489 def test_update_1(self):
490 table1 = self.tables.mytable
491
492 self.assert_compile(
493 update(table1).where(table1.c.myid == 7),
494 "UPDATE mytable SET name=:name WHERE mytable.myid = :myid_1",
495 params={table1.c.name: "fred"},
496 )
497
498 def test_update_2(self):
499 table1 = self.tables.mytable

Callers

nothing calls this directly

Calls 3

updateFunction · 0.90
assert_compileMethod · 0.80
whereMethod · 0.45

Tested by

no test coverage detected