MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_identity_key_token

Method test_identity_key_token

test/orm/test_utils.py:656–664  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

654 eq_(key, (User, (1,), None))
655
656 def test_identity_key_token(self):
657 User, users = self.classes.User, self.tables.users
658
659 self.mapper_registry.map_imperatively(User, users)
660
661 key = orm_util.identity_key(User, [1], identity_token="token")
662 eq_(key, (User, (1,), "token"))
663 key = orm_util.identity_key(User, ident=[1], identity_token="token")
664 eq_(key, (User, (1,), "token"))
665
666
667class PathRegistryTest(_fixtures.FixtureTest):

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