@@ -44,7 +44,7 @@ def teardown_method(self, method):
4444
4545class TestBasic (BaseImageTests ):
4646
47- @pytest .mark .remote_data ( source = 'astropy' )
47+ @pytest .mark .remote_data
4848 @pytest .mark .mpl_image_compare (tolerance = 0 , style = {})
4949 def test_image_plot (self ):
5050 # Test for plotting image and also setting values of ticks
@@ -55,7 +55,7 @@ def test_image_plot(self):
5555 ax .coords [0 ].set_ticks ([- 0.30 , 0. , 0.20 ] * u .degree , size = 5 , width = 1 )
5656 return fig
5757
58- @pytest .mark .remote_data ( source = 'astropy' )
58+ @pytest .mark .remote_data
5959 @pytest .mark .mpl_image_compare (tolerance = 0 , style = {})
6060 def test_axes_off (self ):
6161 # Test for turning the axes off
@@ -65,7 +65,7 @@ def test_axes_off(self):
6565 ax .set_axis_off ()
6666 return fig
6767
68- @pytest .mark .remote_data ( source = 'astropy' )
68+ @pytest .mark .remote_data
6969 @pytest .mark .mpl_image_compare (tolerance = 1.5 , style = {})
7070 @pytest .mark .parametrize ('axisbelow' , [True , False , 'line' ])
7171 def test_axisbelow (self , axisbelow ):
@@ -93,7 +93,7 @@ def test_axisbelow(self, axisbelow):
9393
9494 return fig
9595
96- @pytest .mark .remote_data ( source = 'astropy' )
96+ @pytest .mark .remote_data
9797 @pytest .mark .mpl_image_compare (tolerance = 0 , style = {})
9898 def test_contour_overlay (self ):
9999 # Test for overlaying contours on images
@@ -126,7 +126,7 @@ def test_contour_overlay(self):
126126
127127 return fig
128128
129- @pytest .mark .remote_data ( source = 'astropy' )
129+ @pytest .mark .remote_data
130130 @pytest .mark .mpl_image_compare (tolerance = 0 , style = {})
131131 def test_contourf_overlay (self ):
132132 # Test for overlaying contours on images
@@ -159,7 +159,7 @@ def test_contourf_overlay(self):
159159
160160 return fig
161161
162- @pytest .mark .remote_data ( source = 'astropy' )
162+ @pytest .mark .remote_data
163163 @pytest .mark .mpl_image_compare (tolerance = 0 , style = {})
164164 def test_overlay_features_image (self ):
165165
@@ -196,7 +196,7 @@ def test_overlay_features_image(self):
196196
197197 return fig
198198
199- @pytest .mark .remote_data ( source = 'astropy' )
199+ @pytest .mark .remote_data
200200 @pytest .mark .mpl_image_compare (tolerance = 0 , style = {})
201201 def test_curvilinear_grid_patches_image (self ):
202202
@@ -228,7 +228,7 @@ def test_curvilinear_grid_patches_image(self):
228228
229229 return fig
230230
231- @pytest .mark .remote_data ( source = 'astropy' )
231+ @pytest .mark .remote_data
232232 @pytest .mark .mpl_image_compare (tolerance = 0 , style = {})
233233 def test_cube_slice_image (self ):
234234
@@ -256,7 +256,7 @@ def test_cube_slice_image(self):
256256
257257 return fig
258258
259- @pytest .mark .remote_data ( source = 'astropy' )
259+ @pytest .mark .remote_data
260260 @pytest .mark .mpl_image_compare (tolerance = 0 , style = {})
261261 def test_cube_slice_image_lonlat (self ):
262262
@@ -282,7 +282,7 @@ def test_cube_slice_image_lonlat(self):
282282
283283 return fig
284284
285- @pytest .mark .remote_data ( source = 'astropy' )
285+ @pytest .mark .remote_data
286286 @pytest .mark .mpl_image_compare (tolerance = 0 , style = {})
287287 def test_plot_coord (self ):
288288 fig = plt .figure (figsize = (6 , 6 ))
@@ -307,7 +307,7 @@ def test_plot_coord(self):
307307
308308 return fig
309309
310- @pytest .mark .remote_data ( source = 'astropy' )
310+ @pytest .mark .remote_data
311311 @pytest .mark .mpl_image_compare (tolerance = 0 , style = {})
312312 def test_scatter_coord (self ):
313313 from matplotlib .collections import PathCollection
@@ -353,7 +353,7 @@ def test_plot_line(self):
353353
354354 return fig
355355
356- @pytest .mark .remote_data ( source = 'astropy' )
356+ @pytest .mark .remote_data
357357 @pytest .mark .mpl_image_compare (tolerance = 0 , style = {})
358358 def test_changed_axis_units (self ):
359359 # Test to see if changing the units of axis works
@@ -382,7 +382,7 @@ def test_changed_axis_units(self):
382382
383383 return fig
384384
385- @pytest .mark .remote_data ( source = 'astropy' )
385+ @pytest .mark .remote_data
386386 @pytest .mark .mpl_image_compare (tolerance = 0 , style = {})
387387 def test_minor_ticks (self ):
388388 # Test for drawing minor ticks
@@ -410,7 +410,7 @@ def test_minor_ticks(self):
410410
411411 return fig
412412
413- @pytest .mark .remote_data ( source = 'astropy' )
413+ @pytest .mark .remote_data
414414 @pytest .mark .mpl_image_compare (tolerance = 0 , style = {})
415415 def test_ticks_labels (self ):
416416 fig = plt .figure (figsize = (6 , 6 ))
@@ -438,7 +438,7 @@ def test_ticks_labels(self):
438438
439439 return fig
440440
441- @pytest .mark .remote_data ( source = 'astropy' )
441+ @pytest .mark .remote_data
442442 @pytest .mark .mpl_image_compare (tolerance = 0 , style = {})
443443 def test_rcparams (self ):
444444
@@ -482,7 +482,7 @@ def test_rcparams(self):
482482 ax .coords [1 ].set_ticklabel (exclude_overlapping = True )
483483 return fig
484484
485- @pytest .mark .remote_data ( source = 'astropy' )
485+ @pytest .mark .remote_data
486486 @pytest .mark .mpl_image_compare (tolerance = 0 , style = {})
487487 def test_tick_angles (self ):
488488 # Test that tick marks point in the correct direction, even when the
@@ -508,7 +508,7 @@ def test_tick_angles(self):
508508 ax .coords [0 ].set_format_unit (u .degree )
509509 return fig
510510
511- @pytest .mark .remote_data ( source = 'astropy' )
511+ @pytest .mark .remote_data
512512 @pytest .mark .mpl_image_compare (tolerance = 0 , style = {})
513513 def test_tick_angles_non_square_axes (self ):
514514 # Test that tick marks point in the correct direction, even when the
@@ -535,7 +535,7 @@ def test_tick_angles_non_square_axes(self):
535535 ax .coords [0 ].set_format_unit (u .degree )
536536 return fig
537537
538- @pytest .mark .remote_data ( source = 'astropy' )
538+ @pytest .mark .remote_data
539539 @pytest .mark .mpl_image_compare (tolerance = 0 , style = {})
540540 def test_set_coord_type (self ):
541541 # Test for setting coord_type
@@ -553,7 +553,7 @@ def test_set_coord_type(self):
553553 ax .coords [1 ].set_ticklabel (exclude_overlapping = True )
554554 return fig
555555
556- @pytest .mark .remote_data ( source = 'astropy' )
556+ @pytest .mark .remote_data
557557 @pytest .mark .mpl_image_compare (tolerance = 0 , style = {})
558558 def test_ticks_regression (self ):
559559 # Regression test for a bug that caused ticks aligned exactly with a
@@ -576,7 +576,7 @@ def test_ticks_regression(self):
576576 ax .coords [1 ].set_ticklabel_position ('all' )
577577 return fig
578578
579- @pytest .mark .remote_data ( source = 'astropy' )
579+ @pytest .mark .remote_data
580580 @pytest .mark .mpl_image_compare (savefig_kwargs = {'bbox_inches' : 'tight' },
581581 tolerance = 0 , style = {})
582582 def test_axislabels_regression (self ):
@@ -593,7 +593,7 @@ def test_axislabels_regression(self):
593593 ax .coords [1 ].ticklabels .set_visible (False )
594594 return fig
595595
596- @pytest .mark .remote_data ( source = 'astropy' )
596+ @pytest .mark .remote_data
597597 @pytest .mark .mpl_image_compare (savefig_kwargs = {'bbox_inches' : 'tight' },
598598 tolerance = 0 , style = {})
599599 def test_noncelestial_angular (self , tmpdir ):
@@ -631,7 +631,7 @@ def test_noncelestial_angular(self, tmpdir):
631631
632632 return fig
633633
634- @pytest .mark .remote_data ( source = 'astropy' )
634+ @pytest .mark .remote_data
635635 @pytest .mark .mpl_image_compare (savefig_kwargs = {'bbox_inches' : 'tight' },
636636 tolerance = 0 , style = {})
637637 def test_patches_distortion (self , tmpdir ):
@@ -693,7 +693,7 @@ def test_patches_distortion(self, tmpdir):
693693
694694 return fig
695695
696- @pytest .mark .remote_data ( source = 'astropy' )
696+ @pytest .mark .remote_data
697697 @pytest .mark .mpl_image_compare (tolerance = 0 , style = {})
698698 def test_quadrangle (self , tmpdir ):
699699 # Test that Quadrangle can have curved edges while Rectangle does not
@@ -720,7 +720,7 @@ def test_quadrangle(self, tmpdir):
720720
721721 return fig
722722
723- @pytest .mark .remote_data ( source = 'astropy' )
723+ @pytest .mark .remote_data
724724 @pytest .mark .mpl_image_compare (tolerance = 0 , style = {})
725725 def test_elliptical_frame (self ):
726726
@@ -732,7 +732,7 @@ def test_elliptical_frame(self):
732732 fig .add_axes ([0.2 , 0.2 , 0.6 , 0.6 ], projection = wcs , frame_class = EllipticalFrame )
733733 return fig
734734
735- @pytest .mark .remote_data ( source = 'astropy' )
735+ @pytest .mark .remote_data
736736 @pytest .mark .mpl_image_compare (tolerance = 0 , style = {})
737737 def test_hms_labels (self ):
738738 # This tests the apparance of the hms superscripts in tick labels
@@ -745,7 +745,7 @@ def test_hms_labels(self):
745745 ax .coords [0 ].set_ticks (spacing = 0.2 * 15 * u .arcsec )
746746 return fig
747747
748- @pytest .mark .remote_data ( source = 'astropy' )
748+ @pytest .mark .remote_data
749749 @pytest .mark .mpl_image_compare (tolerance = 0 , style = {'text.usetex' : True })
750750 def test_latex_labels (self ):
751751 fig = plt .figure (figsize = (3 , 3 ))
@@ -757,7 +757,7 @@ def test_latex_labels(self):
757757 ax .coords [0 ].set_ticks (spacing = 0.2 * 15 * u .arcsec )
758758 return fig
759759
760- @pytest .mark .remote_data ( source = 'astropy' )
760+ @pytest .mark .remote_data
761761 @pytest .mark .mpl_image_compare (tolerance = 0 , style = {})
762762 def test_tick_params (self ):
763763
@@ -841,7 +841,7 @@ def wave_wcs_1d():
841841 return wcs
842842
843843
844- @pytest .mark .remote_data ( source = 'astropy' )
844+ @pytest .mark .remote_data
845845@pytest .mark .mpl_image_compare (tolerance = 0 , style = {})
846846def test_1d_plot_1d_wcs (wave_wcs_1d ):
847847 fig = plt .figure ()
@@ -854,7 +854,7 @@ def test_1d_plot_1d_wcs(wave_wcs_1d):
854854 return fig
855855
856856
857- @pytest .mark .remote_data ( source = 'astropy' )
857+ @pytest .mark .remote_data
858858@pytest .mark .mpl_image_compare (tolerance = 0 , style = {})
859859def test_1d_plot_1d_wcs_format_unit (wave_wcs_1d ):
860860 """
@@ -881,7 +881,7 @@ def spatial_wcs_2d():
881881 return wcs
882882
883883
884- @pytest .mark .remote_data ( source = 'astropy' )
884+ @pytest .mark .remote_data
885885@pytest .mark .mpl_image_compare (tolerance = 0 , style = {})
886886def test_1d_plot_2d_wcs_correlated (spatial_wcs_2d ):
887887 fig = plt .figure ()
@@ -918,7 +918,7 @@ def spatial_wcs_2d_small_angle():
918918 # Remember SLLWCS takes slices in array order
919919 (np .s_ [0 , :], 'custom:pos.helioprojective.lon' ),
920920 (np .s_ [:, 0 ], 'custom:pos.helioprojective.lat' )])
921- @pytest .mark .remote_data ( source = 'astropy' )
921+ @pytest .mark .remote_data
922922@pytest .mark .mpl_image_compare (tolerance = 0 , style = {})
923923def test_1d_plot_1d_sliced_low_level_wcs (spatial_wcs_2d_small_angle , slices , bottom_axis ):
924924 """
@@ -939,7 +939,7 @@ def test_1d_plot_1d_sliced_low_level_wcs(spatial_wcs_2d_small_angle, slices, bot
939939@pytest .mark .parametrize ("slices, bottom_axis" , [
940940 (('x' , 0 ), 'hpln' ),
941941 ((0 , 'x' ), 'hplt' )])
942- @pytest .mark .remote_data ( source = 'astropy' )
942+ @pytest .mark .remote_data
943943@pytest .mark .mpl_image_compare (tolerance = 0 , style = {})
944944def test_1d_plot_put_varying_axis_on_bottom_lon (spatial_wcs_2d_small_angle , slices , bottom_axis ):
945945 """
@@ -963,7 +963,7 @@ def test_1d_plot_put_varying_axis_on_bottom_lon(spatial_wcs_2d_small_angle, slic
963963 return fig
964964
965965
966- @pytest .mark .remote_data ( source = 'astropy' )
966+ @pytest .mark .remote_data
967967@pytest .mark .mpl_image_compare (tolerance = 0 , style = {})
968968def test_allsky_labels_wrap ():
969969
0 commit comments