MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_identity_key_1

Method test_identity_key_1

test/orm/test_utils.py:596–604  ·  view source on GitHub ↗
(self, ormutil)

Source from the content-addressed store, hash-verified

594
595 @_cases()
596 def test_identity_key_1(self, ormutil):
597 User, users = self.classes.User, self.tables.users
598
599 self.mapper_registry.map_imperatively(User, users)
600
601 key = ormutil.identity_key(User, [1])
602 eq_(key, (User, (1,), None))
603 key = ormutil.identity_key(User, ident=[1])
604 eq_(key, (User, (1,), None))
605
606 @_cases()
607 def test_identity_key_scalar(self, ormutil):

Callers

nothing calls this directly

Calls 3

eq_Function · 0.90
map_imperativelyMethod · 0.80
identity_keyMethod · 0.45

Tested by

no test coverage detected