MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_over

Method test_over

test/sql/test_external_traversal.py:1077–1082  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1075 assert str(expr) == str(expr2)
1076
1077 def test_over(self):
1078 expr = func.row_number().over(order_by=t1.c.col1)
1079 expr2 = CloningVisitor().traverse(expr)
1080 assert str(expr) == str(expr2)
1081
1082 assert expr in visitors.iterate(expr, {})
1083
1084 def test_within_group(self):
1085 expr = func.row_number().within_group(t1.c.col1)

Callers

nothing calls this directly

Calls 3

iterateMethod · 0.80
overMethod · 0.45
traverseMethod · 0.45

Tested by

no test coverage detected