def test_HS_MSLPStyle_01(self): img = self.plot(mpl_hsec_styles.HS_MSLPStyle_01(driver=self.hsec)) assert img is not None noframe = self.plot(mpl_hsec_styles.HS_MSLPStyle_01(driver=self.hsec), noframe=True) assert noframe is not None assert noframe != img
def test_meter_crs_codes(self, crs): bbox_meter = [-1e7, -1e7, 1e7, 1e7] with warnings.catch_warnings(): warnings.simplefilter( "ignore" ) # disable warnings as there is no data for the cutout img = self.plot(mpl_hsec_styles.HS_MSLPStyle_01(driver=self.hsec), crs=crs, bbox=bbox_meter) assert img is not None
def test_HS_MSLPStyle_01(self): img = self.plot(mpl_hsec_styles.HS_MSLPStyle_01(driver=self.hsec)) assert img is not None
def test_invalid_crs_codes(self, crs): with pytest.raises(ValueError): self.plot(mpl_hsec_styles.HS_MSLPStyle_01(driver=self.hsec), crs=crs)
def test_meter_crs_codes(self, crs): bbox_meter = [-1e7, -1e7, 1e7, 1e7] img = self.plot(mpl_hsec_styles.HS_MSLPStyle_01(driver=self.hsec), crs=crs, bbox=bbox_meter) assert img is not None
def test_degree_crs_codes(self, crs): img = self.plot(mpl_hsec_styles.HS_MSLPStyle_01(driver=self.hsec), crs=crs) assert img is not None
def test_HS_transparent(self): img = self.plot(mpl_hsec_styles.HS_MSLPStyle_01(driver=self.hsec), transparent=True) assert img is not None assert is_image_transparent(img)