Skip to content

Commit

Permalink
Merge pull request #488 from slim-builder/test_tables_col
Browse files Browse the repository at this point in the history
Add ValueError test for tables.column method
  • Loading branch information
adnanhemani authored Feb 11, 2021
2 parents 834cf6e + 65e9605 commit cb81e9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ def test_column(table):
t = table
assert_array_equal(t.column('letter'), np.array(['a', 'b', 'c', 'z']))
assert_array_equal(t.column(1), np.array([9, 3, 3, 1]))
with pytest.raises(ValueError):
t.column(-1)
with pytest.raises(ValueError):
t.column('abc')

def test_values():
t1 = Table().with_columns({
Expand Down

0 comments on commit cb81e9d

Please sign in to comment.