Skip to content

Commit

Permalink
Add unit test to run most common plotters
Browse files Browse the repository at this point in the history
  • Loading branch information
rhiannonlynne committed Apr 1, 2024
1 parent af1e92a commit 771d15b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/maf/test_plotters.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_base_skymap(self):
figs = bundle1.plot()
self.assertTrue(isinstance(figs["SkyMap"], Figure))
# Test healpix histogram - just that it runs
bundle1.set_plot_funcs([maf.HealpixHistogram()])
bundle1.set_plot_funcs([maf.BaseHistogram()])
figs = bundle1.plot()
self.assertTrue(isinstance(figs["Histogram"], Figure))

Expand All @@ -62,3 +62,6 @@ def test_oned_plotter(self):
bundle1.set_plot_funcs([maf.OneDBinnedData()])
figs = bundle1.plot()
self.assertTrue(isinstance(figs["BinnedData"], Figure))

if __name__ == "__main__":
unittest.main()

0 comments on commit 771d15b

Please sign in to comment.