MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_exists_no_eagerloads

Method test_exists_no_eagerloads

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

Source from the content-addressed store, hash-verified

2156 )
2157
2158 def test_exists_no_eagerloads(self):
2159 User = self.classes.User
2160 s = fixture_session()
2161
2162 self.assert_compile(
2163 s.query(
2164 s.query(User).options(joinedload(User.addresses)).exists()
2165 ),
2166 "SELECT EXISTS (SELECT 1 FROM users) AS anon_1",
2167 )
2168
2169 def test_named_subquery(self):
2170 User = self.classes.User

Callers

nothing calls this directly

Calls 6

fixture_sessionFunction · 0.90
joinedloadFunction · 0.90
assert_compileMethod · 0.80
queryMethod · 0.45
existsMethod · 0.45
optionsMethod · 0.45

Tested by

no test coverage detected