MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_single_col_from_subq

Method test_single_col_from_subq

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

Source from the content-addressed store, hash-verified

7172 session.query(User.name).all()
7173
7174 def test_single_col_from_subq(self):
7175 User = self.classes.User
7176 session = fixture_session()
7177 with self._assert_bind_args(session, expect_mapped_bind=True):
7178 subq = session.query(User.id, User.name).subquery()
7179 session.query(subq.c.name).all()
7180
7181 def test_aggregate_fn(self):
7182 User = self.classes.User

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected