Skip to content

Commit

Permalink
added functionality to check column entry types are consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
add-itya committed Feb 12, 2024
1 parent 9a200e0 commit a0b2bc6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,12 @@ def test_basic(table):
z | 1 | 10
""")

def test_column_types(table):
"""Tests that the column types are correct."""
t = table
for col_name in t.labels:
assert all(isinstance(item, (str, int)) for item in t[col_name])

def test_column(table):
"""Test table.values()"""
t = table
Expand Down

0 comments on commit a0b2bc6

Please sign in to comment.