MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_from_clause_role

Method test_from_clause_role

test/sql/test_roles.py:309–313  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

307 is_(expect(roles.StatementRole, d1), d1)
308
309 def test_from_clause_role(self):
310 stmt = select(t).subquery()
311 is_true(
312 expect(roles.FromClauseRole, stmt).compare(select(t).subquery())
313 )
314
315 def test_from_clause_role_disallow_select(self):
316 stmt = select(t)

Callers

nothing calls this directly

Calls 5

selectFunction · 0.90
is_trueFunction · 0.90
expectFunction · 0.90
subqueryMethod · 0.45
compareMethod · 0.45

Tested by

no test coverage detected