From 771d15b9363f8a08476f0de7b3de112d3f7945ac Mon Sep 17 00:00:00 2001 From: Lynne Jones Date: Mon, 1 Apr 2024 16:57:39 -0700 Subject: [PATCH] Add unit test to run most common plotters --- tests/maf/test_plotters.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/maf/test_plotters.py b/tests/maf/test_plotters.py index aad1a3b9..a67882e9 100644 --- a/tests/maf/test_plotters.py +++ b/tests/maf/test_plotters.py @@ -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)) @@ -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()