(self)
| 285 | ) |
| 286 | |
| 287 | def test_labeled_subquery_twice(self): |
| 288 | scalar_select = select(table1.c.col1).label("foo") |
| 289 | |
| 290 | s1 = select(scalar_select).subquery() |
| 291 | s2 = select(scalar_select, scalar_select).subquery() |
| 292 | |
| 293 | eq_( |
| 294 | s1.c.foo.proxy_set, |
| 295 | {s1.c.foo, scalar_select, scalar_select.element}, |
| 296 | ) |
| 297 | eq_( |
| 298 | s2.c.foo.proxy_set, |
| 299 | {s2.c.foo, scalar_select, scalar_select.element}, |
| 300 | ) |
| 301 | |
| 302 | assert s1.corresponding_column(scalar_select) is s1.c.foo |
| 303 | assert s2.corresponding_column(scalar_select) is s2.c.foo |
| 304 | |
| 305 | def test_labels_name_w_separate_key(self): |
| 306 | label = select(table1.c.col1).label("foo") |
nothing calls this directly
no test coverage detected