def test_HS_PVTropoStyle_PV_01(self): # test fractional levels and non-existing levels img = self.plot( mpl_hsec_styles.HS_PVTropoStyle_PV_01(driver=self.hsec), level=2.5) assert img is not None with pytest.raises(ValueError): self.plot(mpl_hsec_styles.HS_PVTropoStyle_PV_01(driver=self.hsec), level=2.75)
def test_HS_PVTropoStyle_PV_01(self): # test fractional levels and non-existing levels for style in ["PRES", "PT", "GEOP"]: img = self.plot(mpl_hsec_styles.HS_PVTropoStyle_PV_01(driver=self.hsec), level=2.5, style=style) assert img is not None noframe = self.plot(mpl_hsec_styles.HS_PVTropoStyle_PV_01(driver=self.hsec), level=2.5, style=style, noframe=True) assert noframe != img with pytest.raises(ValueError): self.plot(mpl_hsec_styles.HS_PVTropoStyle_PV_01(driver=self.hsec), level=2.75)