Skip to content

Commit

Permalink
test for table_to_source_list when table=None
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulHancock committed May 5, 2018
1 parent 9b9ea20 commit 9ecfd73
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_catalogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,15 @@ def test_write_ann():
os.remove('out_simp.reg')


def test_table_to_source_list():
slist = cat.table_to_source_list(None)
if not (slist == []):
raise AssertionError()


if __name__ == "__main__":
# introspect and run all the functions starting with 'test'
for f in dir():
if f.startswith('test'):
print(f)
globals()[f]()
globals()[f]()

0 comments on commit 9ecfd73

Please sign in to comment.