(self)
| 291 | self._assert_labeled_table1_select(s) |
| 292 | |
| 293 | def test_result_map_subquery(self): |
| 294 | table1 = self.table1 |
| 295 | s = ( |
| 296 | table1.select() |
| 297 | .where(table1.c.this_is_the_primarykey_column == 4) |
| 298 | .alias("foo") |
| 299 | ) |
| 300 | s2 = select(s) |
| 301 | compiled = s2.compile(dialect=self._length_fixture()) |
| 302 | assert set( |
| 303 | compiled._create_result_map()["this_is_the_data_column"][1] |
| 304 | ).issuperset(["this_is_the_data_column", s.c.this_is_the_data_column]) |
| 305 | assert set( |
| 306 | compiled._create_result_map()["this_is_the_primarykey__1"][1] |
| 307 | ).issuperset( |
| 308 | [ |
| 309 | "this_is_the_primarykey_column", |
| 310 | "this_is_the_primarykey__1", |
| 311 | s.c.this_is_the_primarykey_column, |
| 312 | ] |
| 313 | ) |
| 314 | |
| 315 | def test_result_map_anon_alias(self): |
| 316 | table1 = self.table1 |
nothing calls this directly
no test coverage detected