Skip to content

Commit

Permalink
passed UnknownColumnNameError an empty list in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnior01 committed Jul 13, 2023
1 parent 7e73ba7 commit 9bd0df0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/safeds/exceptions/test_unknown_column_name_error.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import pytest
from safeds.exceptions import UnknownColumnNameError


@pytest.mark.parametrize(
("column_names", "similar_columns", "expected_error_message"),
[
(["column1", "column2"], [], "Could not find column(s) 'column1, column2'."),
],
ids=["empty_list"]
)
def test_empty_similar_columns(column_names, similar_columns, expected_error_message):
error = UnknownColumnNameError(column_names, similar_columns)
assert str(error) == expected_error_message

0 comments on commit 9bd0df0

Please sign in to comment.