(self, positions)
| 2105 | ((0,),), ((0, 1),), ((1, 2),), ((3,),), argnames="positions" |
| 2106 | ) |
| 2107 | def test_insert_column_tableclause(self, positions): |
| 2108 | t = table( |
| 2109 | "t", |
| 2110 | column("a", Integer), |
| 2111 | column("b", Integer), |
| 2112 | column("c", Integer), |
| 2113 | ) |
| 2114 | |
| 2115 | expected_cols = ["a", "b", "c"] |
| 2116 | for pos in positions: |
| 2117 | t.insert_column(column(f"i{pos}", Integer), pos) |
| 2118 | expected_cols.insert(pos, f"i{pos}") |
| 2119 | |
| 2120 | eq_([c.key for c in t.c], expected_cols) |
| 2121 | |
| 2122 | def test_append_column_existing_name(self): |
| 2123 | t = Table("t", MetaData(), Column("col", Integer)) |
nothing calls this directly
no test coverage detected