(self)
| 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 |
nothing calls this directly
no test coverage detected