(self)
| 7248 | ) |
| 7249 | |
| 7250 | def test_column_property(self): |
| 7251 | User = self.classes.User |
| 7252 | |
| 7253 | mapper = inspect(User) |
| 7254 | mapper.add_property( |
| 7255 | "score", |
| 7256 | column_property(func.coalesce(self.tables.users.c.name, None)), |
| 7257 | ) |
| 7258 | session = fixture_session() |
| 7259 | with self._assert_bind_args(session, expect_mapped_bind=True): |
| 7260 | session.query(func.max(User.score)).scalar() |
| 7261 | |
| 7262 | def test_plain_table(self): |
| 7263 | User = self.classes.User |
nothing calls this directly
no test coverage detected