MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_update_5

Method test_update_5

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

Source from the content-addressed store, hash-verified

524 )
525
526 def test_update_5(self):
527 table1 = self.tables.mytable
528
529 self.assert_compile(
530 update(table1)
531 .where(table1.c.name == bindparam("crit"))
532 .values(
533 {table1.c.name: "hi"},
534 ),
535 "UPDATE mytable SET name=:name WHERE mytable.name = :crit",
536 params={"crit": "notthere"},
537 checkparams={"crit": "notthere", "name": "hi"},
538 )
539
540 def test_update_6(self):
541 table1 = self.tables.mytable

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected