MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_attributes

Method test_attributes

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

Source from the content-addressed store, hash-verified

1554 self._test_roundtrip()
1555
1556 def test_attributes(self):
1557 edge, Edge, Point = (
1558 self.tables.edge,
1559 self.classes.Edge,
1560 self.classes.Point,
1561 )
1562
1563 m = self.mapper_registry.map_imperatively(Edge, edge)
1564 m.add_property("start", sa.orm.composite(Point, Edge.x1, Edge.y1))
1565 m.add_property("end", sa.orm.composite(Point, Edge.x2, Edge.y2))
1566
1567 self._test_roundtrip()
1568
1569 def test_strings(self):
1570 edge, Edge, Point = (

Callers

nothing calls this directly

Calls 3

_test_roundtripMethod · 0.95
map_imperativelyMethod · 0.80
add_propertyMethod · 0.80

Tested by

no test coverage detected