Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
smcguire-cmu committed Nov 1, 2024
1 parent f632365 commit 664c1c6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/hats/inspection/test_visualize_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,3 +680,12 @@ def test_plot_moc(small_sky_order1_catalog):
assert small_sky_order1_catalog.moc.fill.call_args[0][0] is ax
wcs = ax.wcs
assert small_sky_order1_catalog.moc.fill.call_args[0][1] is wcs


def test_plot_moc_catalog(small_sky_order1_catalog):
small_sky_order1_catalog.moc.fill = MagicMock()
_, ax = small_sky_order1_catalog.plot_moc()
small_sky_order1_catalog.moc.fill.assert_called_once()
assert small_sky_order1_catalog.moc.fill.call_args[0][0] is ax
wcs = ax.wcs
assert small_sky_order1_catalog.moc.fill.call_args[0][1] is wcs

0 comments on commit 664c1c6

Please sign in to comment.