File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/astro_image_display_api Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ def _get_marker_names_as_set(self):
6464 def test_default_marker_names (self ):
6565 # Check only that default names are set to a non-empty string
6666 assert self .image .DEFAULT_MARKER_NAME
67- assert self .image .DEFAULT_INTERACTIVE_MARKER_NAME
6867
6968 def test_width_height (self ):
7069 assert self .image .image_width == 250
@@ -124,7 +123,14 @@ def test_zoom(self):
124123 self .image .zoom (2 )
125124 assert self .image .zoom_level == 6 # 3 x 2
126125
127- # TODO: add test of marker properties
126+ def test_marker_properties (self ):
127+ # Set the marker style
128+ marker_style = {'color' : 'yellow' , 'radius' : 10 , 'type' : 'cross' }
129+ self .image .marker = marker_style
130+ m_str = str (self .image .marker )
131+ for key in marker_style .keys ():
132+ assert key in m_str
133+
128134 # TODO: add test that checks that retrieving markers with an unknown name issues no error
129135
130136 def test_add_markers (self ):
You can’t perform that action at this time.
0 commit comments