diff --git a/tests/safeds/data/tabular/containers/_table/test_from_columns.py b/tests/safeds/data/tabular/containers/_table/test_from_columns.py index 7ce8add2f..a9a0b4e79 100644 --- a/tests/safeds/data/tabular/containers/_table/test_from_columns.py +++ b/tests/safeds/data/tabular/containers/_table/test_from_columns.py @@ -1,8 +1,6 @@ import pandas as pd -import pytest -from safeds.data.tabular.containers import Column, Table -from safeds.data.tabular.exceptions import MissingDataError +from safeds.data.tabular.containers import Column, Table from tests.helpers import resolve_resource_path @@ -15,8 +13,3 @@ def test_from_columns() -> None: table_restored: Table = Table.from_columns(columns_table) assert table_restored == table_expected - - -def test_from_columns_invalid() -> None: - with pytest.raises(MissingDataError): - Table.from_columns([]) diff --git a/tests/safeds/data/tabular/containers/_table/test_keep_only_columns.py b/tests/safeds/data/tabular/containers/_table/test_keep_only_columns.py index 6b376d742..9c07032e3 100644 --- a/tests/safeds/data/tabular/containers/_table/test_keep_only_columns.py +++ b/tests/safeds/data/tabular/containers/_table/test_keep_only_columns.py @@ -40,7 +40,7 @@ def test_should_keep_only_listed_columns(self, table: Table, column_names: list[ transformed_table = table.keep_only_columns(column_names) assert transformed_table == expected - def test_raise_if_column_does_no_exist(self): + def test_should_raise_if_column_does_no_exist(self): table = Table.from_columns([Column("A", [1]), Column("B", [2])]) with pytest.raises(UnknownColumnNameError): table.keep_only_columns(["C"])