MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_update_9

Method test_update_9

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

Source from the content-addressed store, hash-verified

577 )
578
579 def test_update_9(self):
580 table1 = self.tables.mytable
581
582 s = (
583 table1.update()
584 .where(table1.c.myid == 12)
585 .values({table1.c.name: "lala"})
586 )
587 c = s.compile(column_keys=["id", "name"])
588 eq_(str(s), str(c))
589
590 def test_update_10(self):
591 table1 = self.tables.mytable

Callers

nothing calls this directly

Calls 5

eq_Function · 0.90
valuesMethod · 0.45
whereMethod · 0.45
updateMethod · 0.45
compileMethod · 0.45

Tested by

no test coverage detected