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
12 changes: 12 additions & 0 deletions tests/test_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -1960,6 +1960,18 @@ def test_array_roundtrip(table):
assert_equal(c0, c1)


def test_to_csv(table):
import tempfile
import os
with tempfile.TemporaryDirectory() as tmp_dir:
filename = os.path.join(tmp_dir, 'test_output.csv')
table.to_csv(filename)
t = Table.read_table(filename)
for (c0, c1) in zip(t.columns, table.columns):
assert_equal(c0, c1)



def test_url_parse():
"""Test that Tables parses URLs correctly"""
with pytest.raises(ValueError):
Expand Down