Skip to content

Commit

Permalink
test: remove outdated test
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-reimann committed Apr 16, 2023
1 parent e23df8b commit aabc109
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -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


Expand All @@ -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([])
Original file line number Diff line number Diff line change
Expand Up @@ -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"])

0 comments on commit aabc109

Please sign in to comment.