MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_columns

Method test_columns

test/orm/test_composites.py:1538–1554  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1536 eq_(e1, Edge(start=Point(3, 4), end=Point(5, 6)))
1537
1538 def test_columns(self):
1539 edge, Edge, Point = (
1540 self.tables.edge,
1541 self.classes.Edge,
1542 self.classes.Point,
1543 )
1544
1545 self.mapper_registry.map_imperatively(
1546 Edge,
1547 edge,
1548 properties={
1549 "start": sa.orm.composite(Point, edge.c.x1, edge.c.y1),
1550 "end": sa.orm.composite(Point, edge.c.x2, edge.c.y2),
1551 },
1552 )
1553
1554 self._test_roundtrip()
1555
1556 def test_attributes(self):
1557 edge, Edge, Point = (

Callers

nothing calls this directly

Calls 2

_test_roundtripMethod · 0.95
map_imperativelyMethod · 0.80

Tested by

no test coverage detected