(self)
| 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)) |
| 2124 | |
| 2125 | with testing.expect_raises_message( |
| 2126 | exc.DuplicateColumnError, |
| 2127 | r"A column with name 'col' is already present in table 't'. " |
| 2128 | r"Specify replace_existing=True to Table.append_column\(\) or " |
| 2129 | r"Table.insert_column\(\) to " |
| 2130 | r"replace an existing column.", |
| 2131 | ): |
| 2132 | t.append_column(Column("col", String)) |
| 2133 | |
| 2134 | def test_append_column_existing_key(self): |
| 2135 | t = Table("t", MetaData(), Column("col", Integer, key="c2")) |
nothing calls this directly
no test coverage detected