(self)
| 7773 | ) |
| 7774 | |
| 7775 | def test_column_property(self): |
| 7776 | User = self.classes.User |
| 7777 | |
| 7778 | mapper = inspect(User) |
| 7779 | mapper.add_property( |
| 7780 | "score", |
| 7781 | column_property(func.coalesce(self.tables.users.c.name, None)), |
| 7782 | ) |
| 7783 | session = fixture_session() |
| 7784 | with self._assert_bind_args(session, expect_mapped_bind=True): |
| 7785 | session.query(func.max(User.score)).scalar() |
| 7786 | |
| 7787 | def test_plain_table(self): |
| 7788 | User = self.classes.User |
nothing calls this directly
no test coverage detected