Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions tests/test_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -1995,3 +1995,12 @@ def test_num_columns(table):
"""Test that Tables returns right number of columns"""
number = table.num_columns
assert number == 3

def test_as_label(table):
"""Test that as_label raises ValueError for invalid index_or_label along with correct message"""

invalid_input = None

with pytest.raises(ValueError) as t:
table._as_label(invalid_input)
assert str(t.value) == "None is not a label or index"