MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_within_group

Method test_within_group

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

Source from the content-addressed store, hash-verified

1082 assert expr in visitors.iterate(expr, {})
1083
1084 def test_within_group(self):
1085 expr = func.row_number().within_group(t1.c.col1)
1086 expr2 = CloningVisitor().traverse(expr)
1087 assert str(expr) == str(expr2)
1088
1089 assert expr in visitors.iterate(expr, {})
1090
1091 def test_funcfilter(self):
1092 expr = func.count(1).filter(t1.c.col1 > 1)

Callers

nothing calls this directly

Calls 3

iterateMethod · 0.80
within_groupMethod · 0.45
traverseMethod · 0.45

Tested by

no test coverage detected