MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_select_tuple_outer

Method test_select_tuple_outer

test/sql/test_select.py:592–600  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

590 stmt.filter_by(data="child_data")
591
592 def test_select_tuple_outer(self):
593 stmt = select(tuple_(table1.c.myid, table1.c.name))
594
595 assert_raises_message(
596 exc.CompileError,
597 r"Most backends don't support SELECTing from a tuple\(\) object. "
598 "If this is an ORM query, consider using the Bundle object.",
599 stmt.compile,
600 )
601
602 def test_select_tuple_subquery(self):
603 subq = select(

Callers

nothing calls this directly

Calls 3

selectFunction · 0.90
tuple_Function · 0.90
assert_raises_messageFunction · 0.90

Tested by

no test coverage detected