Skip to content

Commit 734f240

Browse files
committed
Add checks for the last few attributes not checked in API tests
1 parent 7b806c9 commit 734f240

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/astro_image_display_api/widget_api_test.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ def _check_marker_table_return_properties(self, table):
5454
assert len(table) == 0
5555
assert sorted(table.colnames) == sorted(['x', 'y', 'coord', 'marker name'])
5656

57+
def test_default_marker_names(self):
58+
# Check only that default names are set to a non-empty string
59+
assert self.image.DEFAULT_MARKER_NAME
60+
assert self.image.DEFAULT_INTERACTIVE_MARKER_NAME
61+
5762
def test_width_height(self):
5863
assert self.image.image_width == 250
5964
assert self.image.image_height == 100
@@ -316,6 +321,9 @@ def test_adding_markers_as_world(self, data, wcs):
316321
mark_coord_table['coord'].dec.deg)
317322

318323
def test_stretch(self):
324+
# Check that the stretch options is not an empty list
325+
assert len(self.image.stretch_options) > 0
326+
319327
original_stretch = self.image.stretch
320328

321329
with pytest.raises(ValueError, match='must be one of'):

0 commit comments

Comments
 (0)