MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_update_both

Method test_update_both

test/orm/dml/test_bulk.py:577–587  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

575
576 @testing.requires.updateable_autoincrement_pks
577 def test_update_both(self):
578 # want to make sure that before [ticket:3849], this did not have
579 # a successful behavior or workaround
580 asserter = self._test_update(self.classes.PersonBoth)
581 asserter.assert_(
582 CompiledSQL(
583 "UPDATE people_both SET name=:name_key "
584 "WHERE people_both.person_id = :people_both_person_id",
585 [{"name_key": "newname", "people_both_person_id": 5}],
586 )
587 )
588
589 def _test_insert(self, person_cls):
590 Person = person_cls

Callers

nothing calls this directly

Calls 3

_test_updateMethod · 0.95
CompiledSQLClass · 0.90
assert_Method · 0.45

Tested by

no test coverage detected