MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / setup_mappers

Method setup_mappers

test/ext/test_mutable.py:1590–1599  ·  test/ext/test_mutable.py::MutableCompositesUnpickleTest.setup_mappers
(cls)

Source from the content-addressed store, hash-verified

1588class MutableCompositesUnpickleTest(_CompositeTestBase, fixtures.MappedTest):
1589 @classmethod
1590 def setup_mappers(cls):
1591 foo = cls.tables.foo
1592
1593 cls.Point = cls._type_fixture()
1594
1595 cls.mapper_registry.map_imperatively(
1596 FooWithEq,
1597 foo,
1598 properties={class="st">"data": composite(cls.Point, foo.c.x, foo.c.y)},
1599 )
1600
1601 def test_unpickle_modified_eq(self):
1602 u1 = FooWithEq(data=self.Point(3, 5))

Callers

nothing calls this directly

Calls 3

compositeFunction · 0.90
map_imperativelyMethod · 0.80
_type_fixtureMethod · 0.45

Tested by

no test coverage detected