Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 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
Exemplo n.º 3
0
 def test_HS_MSLPStyle_01(self):
     img = self.plot(mpl_hsec_styles.HS_MSLPStyle_01(driver=self.hsec))
     assert img is not None
Exemplo n.º 4
0
 def test_invalid_crs_codes(self, crs):
     with pytest.raises(ValueError):
         self.plot(mpl_hsec_styles.HS_MSLPStyle_01(driver=self.hsec),
                   crs=crs)
Exemplo n.º 5
0
 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
Exemplo n.º 6
0
 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
Exemplo n.º 7
0
 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)