(self)
| 3303 | ) |
| 3304 | |
| 3305 | def test_from_function(self): |
| 3306 | Bookcase = self.classes.Bookcase |
| 3307 | |
| 3308 | s = fixture_session() |
| 3309 | |
| 3310 | srf = lateral(func.generate_series(1, Bookcase.bookcase_shelves)) |
| 3311 | |
| 3312 | self.assert_compile( |
| 3313 | s.query(Bookcase).join(srf, true()), |
| 3314 | "SELECT bookcases.bookcase_id AS bookcases_bookcase_id, " |
| 3315 | "bookcases.bookcase_owner_id AS bookcases_bookcase_owner_id, " |
| 3316 | "bookcases.bookcase_shelves AS bookcases_bookcase_shelves, " |
| 3317 | "bookcases.bookcase_width AS bookcases_bookcase_width " |
| 3318 | "FROM bookcases JOIN " |
| 3319 | "LATERAL generate_series(:generate_series_1, " |
| 3320 | "bookcases.bookcase_shelves) AS anon_1 ON true", |
| 3321 | ) |
| 3322 | |
| 3323 | def test_from_function_aas(self): |
| 3324 | Bookcase = self.classes.Bookcase |
nothing calls this directly
no test coverage detected