Skip to content

Commit 6fa8cf9

Browse files
author
mahdis-z
committed
modified tests
1 parent e2c296d commit 6fa8cf9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: packages/python/plotly/plotly/tests/test_core/test_update_objects/test_update_annotations.py

+4
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ def test_update_annotations(self):
220220
)
221221

222222
def test_annotation_attributes(self):
223+
self.fig.add_annotation(test="this text", yref="paper")
223224
self.fig.update_annotations(text="hi")
224225

225226
def test_update_shapes(self):
@@ -241,6 +242,8 @@ def test_update_shapes(self):
241242
self.assert_update("shapes", [4], patch=dict(opacity=0), secondary_y=True)
242243

243244
def test_shape_attributes(self):
245+
246+
self.fig.add_shape(fillcolor='blue', opacity=0.3)
244247
self.fig.update_shapes(fillcolor="red")
245248

246249
def test_update_images(self):
@@ -262,4 +265,5 @@ def test_update_images(self):
262265
self.assert_update("images", [4], patch=dict(opacity=0), secondary_y=True)
263266

264267
def test_image_attributes(self):
268+
self.fig.add_layout_image(name='my name', x=1, y=2)
265269
self.fig.update_layout_images(opacity=0.1)

0 commit comments

Comments
 (0)