MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_strings

Method test_strings

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

Source from the content-addressed store, hash-verified

1567 self._test_roundtrip()
1568
1569 def test_strings(self):
1570 edge, Edge, Point = (
1571 self.tables.edge,
1572 self.classes.Edge,
1573 self.classes.Point,
1574 )
1575
1576 m = self.mapper_registry.map_imperatively(Edge, edge)
1577 m.add_property("start", sa.orm.composite(Point, "x1", "y1"))
1578 m.add_property("end", sa.orm.composite(Point, "x2", "y2"))
1579
1580 self._test_roundtrip()
1581
1582 def test_deferred_config(self):
1583 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