(self, opts, expected)
| 1330 | ) |
| 1331 | |
| 1332 | def _assert_attrs(self, opts, expected): |
| 1333 | User = self.classes.User |
| 1334 | |
| 1335 | s = fixture_session() |
| 1336 | q1 = s.query(User).options(*opts) |
| 1337 | attr = q1._compile_context().attributes |
| 1338 | |
| 1339 | key = ( |
| 1340 | "loader", |
| 1341 | tuple(inspect(User)._path_registry[User.name.property]), |
| 1342 | ) |
| 1343 | eq_(attr[key].local_opts, expected) |
| 1344 | |
| 1345 | def test_single_opt_only(self): |
| 1346 | User = self.classes.User |
no test coverage detected