MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_get_history

Method test_get_history

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

Source from the content-addressed store, hash-verified

520 )
521
522 def test_get_history(self):
523 Edge = self.classes.Edge
524 Point = self.classes.Point
525 from sqlalchemy.orm.attributes import get_history
526
527 e1 = Edge()
528 e1.start = Point(1, 2)
529 eq_(
530 get_history(e1, "start"),
531 ([Point(x=1, y=2)], (), [Point(x=None, y=None)]),
532 )
533
534 eq_(get_history(e1, "end"), ((), [Point(x=None, y=None)], ()))
535
536 def test_query_cols_legacy(self):
537 Edge = self.classes.Edge

Callers

nothing calls this directly

Calls 4

eq_Function · 0.90
get_historyFunction · 0.90
EdgeClass · 0.70
PointClass · 0.70

Tested by

no test coverage detected