Skip to content

Commit f50f364

Browse files
committed
Fix a couple of breaking tests
1 parent 26c90ad commit f50f364

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/astro_image_display_api/widget_api_test.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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):

0 commit comments

Comments
 (0)