MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_update_5

Method test_update_5

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

Source from the content-addressed store, hash-verified

522 )
523
524 def test_update_5(self):
525 table1 = self.tables.mytable
526
527 self.assert_compile(
528 update(table1)
529 .where(table1.c.name == bindparam("crit"))
530 .values(
531 {table1.c.name: "hi"},
532 ),
533 "UPDATE mytable SET name=:name WHERE mytable.name = :crit",
534 params={"crit": "notthere"},
535 checkparams={"crit": "notthere", "name": "hi"},
536 )
537
538 def test_update_6(self):
539 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