MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_update_keys

Method test_update_keys

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

Source from the content-addressed store, hash-verified

543 ("dicts",),
544 )
545 def test_update_keys(self, type_):
546 if type_ == "states":
547 asserter = self._test_update_states(self.classes.PersonKeys)
548 else:
549 asserter = self._test_update(self.classes.PersonKeys)
550 asserter.assert_(
551 CompiledSQL(
552 "UPDATE people_keys SET name=:personname "
553 "WHERE people_keys.person_id = :people_keys_person_id",
554 [{"personname": "newname", "people_keys_person_id": 5}],
555 )
556 )
557
558 @testing.combinations(
559 ("states",),

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