Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add coverage tests for tables.py #568

Closed
wants to merge 2 commits into from
Closed
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: 8 additions & 1 deletion tests/test_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -1157,7 +1157,6 @@ def test_remove_column_type(table):
# Create #
##########


def test_empty():
t = Table(['letter', 'count', 'points'])
assert_equal(t, """
Expand Down Expand Up @@ -1209,6 +1208,10 @@ def test_from_records():
c | 3 | 2
z | 1 | 10
""")

def test_from_records_none():
t = Table.from_records(None)
assert_equal(t, '')


@pytest.mark.filterwarnings('ignore::FutureWarning')
Expand All @@ -1226,6 +1229,10 @@ def test_from_columns_dict():
c | 3 | 2
z | 1 | 10
""")

def test_column_labels():
with pytest.warns(FutureWarning):
t = Table().column_labels


#############
Expand Down