MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_identity_key_scalar

Method test_identity_key_scalar

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

Source from the content-addressed store, hash-verified

605
606 @_cases()
607 def test_identity_key_scalar(self, ormutil):
608 User, users = self.classes.User, self.tables.users
609
610 self.mapper_registry.map_imperatively(User, users)
611
612 key = ormutil.identity_key(User, 1)
613 eq_(key, (User, (1,), None))
614 key = ormutil.identity_key(User, ident=1)
615 eq_(key, (User, (1,), None))
616
617 @_cases()
618 def test_identity_key_2(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