Skip to content

Commit ab383e1

Browse files
committed
Use only valid marker shapes in test
1 parent 87b0116 commit ab383e1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/astro_image_display_api/api_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def test_set_catalog_style_before_catalog_data_raises_error(self):
362362
with pytest.raises(
363363
ValueError, match="Must load a catalog before setting a catalog style"
364364
):
365-
self.image.set_catalog_style(color="red", shape="x", size=10)
365+
self.image.set_catalog_style(color="red", shape="circle", size=10)
366366

367367
def test_set_get_catalog_style_no_labels(self, catalog):
368368
# Check that getting without setting returns a dict that contains
@@ -376,7 +376,7 @@ def test_set_get_catalog_style_no_labels(self, catalog):
376376
# Add some data before setting a style
377377
self.image.load_catalog(catalog)
378378
# Check that setting a marker style works
379-
marker_settings = dict(color="red", shape="x", size=10)
379+
marker_settings = dict(color="red", shape="crosshair", size=10)
380380
self.image.set_catalog_style(**marker_settings.copy())
381381

382382
retrieved_style = self.image.get_catalog_style()
@@ -421,7 +421,7 @@ def test_set_get_catalog_style_preserves_extra_keywords(self, catalog):
421421
# The only required keywords are color, shape, and size.
422422
# Add some extra keyword to the style.
423423
style = dict(
424-
color="blue", shape="x", size=10, extra_kw="extra_value", alpha=0.5
424+
color="blue", shape="circle", size=10, extra_kw="extra_value", alpha=0.5
425425
)
426426
self.image.set_catalog_style(**style.copy())
427427

@@ -605,7 +605,7 @@ def test_load_catalog_with_no_style_has_a_style(self, catalog):
605605
def test_load_catalog_with_style_sets_style(self, catalog):
606606
# Check that loading a catalog with a style sets the style
607607
# for that catalog.
608-
style = dict(color="blue", shape="x", size=10)
608+
style = dict(color="blue", shape="square", size=10)
609609
self.image.load_catalog(
610610
catalog, catalog_label="test1", catalog_style=style.copy()
611611
)

0 commit comments

Comments
 (0)