MCPcopy Create free account
hub / github.com/zzzeek/sqlalchemy / test_sql_expr_exists_from_entity

Method test_sql_expr_exists_from_entity

test/orm/test_query.py:7138–7143  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7136
7137 @testing.requires.boolean_col_expressions
7138 def test_sql_expr_exists_from_entity(self):
7139 User = self.classes.User
7140 session = fixture_session()
7141 with self._assert_bind_args(session, expect_mapped_bind=True):
7142 subq = session.query(User.id).exists()
7143 session.query(subq).all()
7144
7145 def test_sql_expr_cte_from_entity(self):
7146 User = self.classes.User

Callers

nothing calls this directly

Calls 5

_assert_bind_argsMethod · 0.95
fixture_sessionFunction · 0.90
existsMethod · 0.45
queryMethod · 0.45
allMethod · 0.45

Tested by

no test coverage detected