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

Method setup_mappers

test/ext/test_mutable.py:1615–1624  ·  test/ext/test_mutable.py::MutableCompositesTest.setup_mappers
(cls)

Source from the content-addressed store, hash-verified

1613class MutableCompositesTest(_CompositeTestBase, fixtures.MappedTest):
1614 @classmethod
1615 def setup_mappers(cls):
1616 foo = cls.tables.foo
1617
1618 cls.Point = cls._type_fixture()
1619
1620 cls.mapper_registry.map_imperatively(
1621 Foo,
1622 foo,
1623 properties={class="st">"data": composite(cls.Point, foo.c.x, foo.c.y)},
1624 )
1625
1626 def test_in_place_mutation(self):
1627 sess = fixture_session()

Callers

nothing calls this directly

Calls 3

compositeFunction · 0.90
map_imperativelyMethod · 0.80
_type_fixtureMethod · 0.45

Tested by

no test coverage detected