@@ -157,7 +157,7 @@ def test_set_get_catalog_style_no_labels(self, catalog):
157157 self .image .load_catalog (catalog )
158158 # Check that setting a marker style works
159159 marker_settings = dict (color = 'red' , shape = 'x' , size = 10 )
160- self .image .set_catalog_style (** marker_settings )
160+ self .image .set_catalog_style (** marker_settings . copy () )
161161
162162 retrieved_style = self .image .get_catalog_style ()
163163 # Check that the marker style is set correctly
@@ -173,7 +173,7 @@ def test_set_get_catalog_style_with_single_label(self, catalog):
173173 self .image .load_catalog (catalog , catalog_label = 'test1' )
174174 set_style_input = dict (catalog_label = 'test1' , color = 'blue' ,
175175 shape = 'square' , size = 5 )
176- self .image .set_catalog_style (** set_style_input )
176+ self .image .set_catalog_style (** set_style_input . copy () )
177177 retrieved_style = self .image .get_catalog_style ()
178178
179179 assert set_style_input == retrieved_style
@@ -367,9 +367,12 @@ def test_load_catalog_with_style_sets_style(self, catalog):
367367 # for that catalog.
368368 style = dict (color = 'blue' , shape = 'x' , size = 10 )
369369 self .image .load_catalog (catalog , catalog_label = 'test1' ,
370- catalog_style = style )
370+ catalog_style = style . copy () )
371371
372372 retrieved_style = self .image .get_catalog_style (catalog_label = 'test1' )
373+
374+ # Add catalog_label to the style for comparison
375+ style ['catalog_label' ] = 'test1'
373376 assert retrieved_style == style
374377
375378 def test_remove_catalog (self ):
0 commit comments