MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_update_attrs

Method test_update_attrs

test/orm/dml/test_bulk.py:563–574  ·  view source on GitHub ↗
(self, type_)

Source from the content-addressed store, hash-verified

561 )
562 @testing.requires.updateable_autoincrement_pks
563 def test_update_attrs(self, type_):
564 if type_ == "states":
565 asserter = self._test_update_states(self.classes.PersonAttrs)
566 else:
567 asserter = self._test_update(self.classes.PersonAttrs)
568 asserter.assert_(
569 CompiledSQL(
570 "UPDATE people_attrs SET name=:name "
571 "WHERE people_attrs.person_id = :people_attrs_person_id",
572 [{"name": "newname", "people_attrs_person_id": 5}],
573 )
574 )
575
576 @testing.requires.updateable_autoincrement_pks
577 def test_update_both(self):

Callers

nothing calls this directly

Calls 4

_test_update_statesMethod · 0.95
_test_updateMethod · 0.95
CompiledSQLClass · 0.90
assert_Method · 0.45

Tested by

no test coverage detected