Skip to content

Commit

Permalink
feat: rename a Column
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-reimann committed Mar 24, 2023
1 parent 1651cc2 commit 6809887
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/safeds/data/tabular/containers/_column/test_rename.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from safeds.data.tabular.containers import Column


def test_should_return_new_column_with_new_name():
def test_should_return_new_column_with_new_name() -> None:
column = Column([1, 2, 3], "A")
new_column = column.rename("B")
assert new_column.name == "B"


def test_should_not_change_name_of_original_column():
def test_should_not_change_name_of_original_column() -> None:`
column = Column([1, 2, 3], "A")
column.rename("B")
assert column.name == "A"

0 comments on commit 6809887

Please sign in to comment.