1- # TODO: How to enable switching out backend and still run the same tests?
21
32import pytest
43
@@ -102,7 +101,6 @@ def test_offset_by(self, data, wcs):
102101 # have) taken care of setting up the WCS internally if initialized with
103102 # an NDData that has a WCS.
104103 ndd = NDData (data = data , wcs = wcs )
105- # TODO: THIS WOULD FAIL ON A VIEWER THAT DOES NOT ALLOW NDDATA OR ARRAY LOADING
106104 self .image .load_image (ndd )
107105
108106 self .image .offset_by (10 * u .arcmin , 10 * u .arcmin )
@@ -117,7 +115,6 @@ def test_offset_by(self, data, wcs):
117115
118116 def test_zoom_level (self , data ):
119117 # Set data first, since that is needed to determine zoom level
120- # TODO: THIS WOULD FAIL ON A VIEWER THAT DOES NOT ALLOW NDDATA OR ARRAY LOADING
121118 self .image .load_image (data )
122119 self .image .zoom_level = 5
123120 assert self .image .zoom_level == 5
@@ -135,8 +132,6 @@ def test_marker_properties(self):
135132 for key in marker_style .keys ():
136133 assert key in m_str
137134
138- # TODO: add test that checks that retrieving markers with an unknown name issues no error
139-
140135 def test_add_markers (self ):
141136 original_marker_name = self .image .DEFAULT_MARKER_NAME
142137 data = np .arange (10 ).reshape (5 , 2 )
@@ -252,7 +247,6 @@ def test_remove_marker_accepts_list(self):
252247
253248 def test_adding_markers_as_world (self , data , wcs ):
254249 ndd = NDData (data = data , wcs = wcs )
255- # TODO: THIS WOULD FAIL ON A VIEWER THAT DOES NOT ALLOW NDDATA OR ARRAY LOADING
256250 self .image .load_image (ndd )
257251
258252 # Add markers using world coordinates
@@ -299,7 +293,6 @@ def test_cuts(self, data):
299293 assert 'histogram' in self .image .autocut_options
300294
301295 # Setting using histogram requires data
302- # TODO: THIS WOULD FAIL ON A VIEWER THAT DOES NOT ALLOW NDDATA OR ARRAY LOADING
303296 self .image .load_image (data )
304297 self .image .cuts = 'histogram'
305298 assert len (self .image .cuts ) == 2
0 commit comments