Skip to content

Commit

Permalink
Merge pull request #71 from michiboo/test
Browse files Browse the repository at this point in the history
finished test_reset_marks
  • Loading branch information
mwcraig committed Mar 11, 2019
2 parents d88205e + a8da091 commit a651636
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions astrowidgets/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,15 @@ def test_reset_markers():
# (it also doesn't *do* anything...)
image.reset_markers()
assert image.get_markers() is None

# TODO add test of actually removing markers...
table = Table(data=np.random.randint(0, 100, [5, 2]),
names=['x', 'y'], dtype=('int', 'int'))
image.add_markers(table, x_colname='x', y_colname='y',
skycoord_colname='coord', marker_name='test')
image.add_markers(table, x_colname='x', y_colname='y',
skycoord_colname='coord', marker_name='test2')
image.reset_markers()
assert image.get_markers(marker_name='test') is None
assert image.get_markers(marker_name='test2') is None


def test_remove_markers():
Expand Down

0 comments on commit a651636

Please sign in to comment.