MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_over_frame_exclude_invalid

Method test_over_frame_exclude_invalid

test/sql/test_compiler.py:3410–3422  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3408 )
3409
3410 def test_over_frame_exclude_invalid(self):
3411 # invalid exclude value raises at compile time
3412 assert_raises_message(
3413 exc.CompileError,
3414 "Unexpected SQL phrase: 'INVALID'",
3415 select(
3416 func.row_number().over(
3417 order_by=table1.c.myid,
3418 rows=(None, 0),
3419 exclude="INVALID",
3420 )
3421 ).compile,
3422 )
3423
3424 def test_over_frame_exclude_requires_frame_spec(self):
3425 # exclude without rows/range_/groups raises at construction time

Callers

nothing calls this directly

Calls 3

assert_raises_messageFunction · 0.90
selectFunction · 0.90
overMethod · 0.45

Tested by

no test coverage detected