Skip to content

Commit

Permalink
Add test to check Table.groups raises error
Browse files Browse the repository at this point in the history
  • Loading branch information
rainearcher committed Jul 31, 2023
1 parent 0fe50f2 commit f4b753d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,11 @@ def test_groups_nans(table5):
3 | 10 | 1
""")

def test_groups_with_nonexistent_label(table):
t = table.copy()
with (pytest.raises(ValueError)):
t.groups(['bad_label', 'points'])

def test_join(table, table2):
"""Tests that join works, not destructive"""
t = table
Expand Down

0 comments on commit f4b753d

Please sign in to comment.