Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/301-enhance-replace_column-to-ac…
Browse files Browse the repository at this point in the history
…cept-a-list-of-new-columns' into 301-enhance-replace_column-to-accept-a-list-of-new-columns
  • Loading branch information
robmeth committed Jun 9, 2023
2 parents e7e72a3 + 4cdd581 commit 3661794
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions tests/safeds/data/tabular/containers/_table/test_replace_column.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,18 @@ def test_should_replace_column(table: Table, column_name: str, columns: list[Col
("old_column_name", "column", "error", "error_message"),
[
("D", [Column("C", ["d", "e", "f"])], UnknownColumnNameError, r"Could not find column\(s\) 'D'"),
("C", [Column("B", ["d", "e", "f"]), Column("D", [3, 2, 1])], DuplicateColumnNameError, r"Column 'B' already exists."),
("C", [Column("D", [7, 8]), Column("E", ["c", "b"])], ColumnSizeError, r"Expected a column of size 3 but got column of size 2."),
(
"C",
[Column("B", ["d", "e", "f"]), Column("D", [3, 2, 1])],
DuplicateColumnNameError,
r"Column 'B' already exists.",
),
(
"C",
[Column("D", [7, 8]), Column("E", ["c", "b"])],
ColumnSizeError,
r"Expected a column of size 3 but got column of size 2.",
),
],
ids=["UnknownColumnNameError", "DuplicateColumnNameError", "ColumnSizeError"],
)
Expand Down

0 comments on commit 3661794

Please sign in to comment.