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 2ae3c0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 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 @@ -36,11 +36,11 @@ class TestKeepOnlyColumns:
),
]
)
def test_should_keep_only_listed_columns(self, table: Table, column_names: list[str], expected: Table):
def test_should_keep_only_listed_columns(self, table: Table, column_names: list[str], expected: Table) -> None:
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) -> None:
table = Table.from_columns([Column("A", [1]), Column("B", [2])])
with pytest.raises(UnknownColumnNameError):
table.keep_only_columns(["C"])

0 comments on commit 2ae3c0d

Please sign in to comment.