(self, opts, expected)
| 1340 | ) |
| 1341 | |
| 1342 | def _assert_attrs(self, opts, expected): |
| 1343 | User = self.classes.User |
| 1344 | |
| 1345 | s = fixture_session() |
| 1346 | q1 = s.query(User).options(*opts) |
| 1347 | attr = q1._compile_context().attributes |
| 1348 | |
| 1349 | key = ( |
| 1350 | "loader", |
| 1351 | tuple(inspect(User)._path_registry[User.name.property]), |
| 1352 | ) |
| 1353 | eq_(attr[key].local_opts, expected) |
| 1354 | |
| 1355 | def test_single_opt_only(self): |
| 1356 | User = self.classes.User |
no test coverage detected