Skip to content

Commit 89b8169

Browse files
author
mahdis-z
committed
tests added
1 parent 1e9ee2f commit 89b8169

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/python/plotly/plotly/tests/test_core/test_update_objects/test_update_annotations.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@ def test_update_annotations(self):
219219
"annotations", [4], patch=dict(showarrow=False), secondary_y=True
220220
)
221221

222+
def test_annotation_attributes(self):
223+
self.fig.update_annotations(text='hi')
224+
222225
def test_update_shapes(self):
223226
(
224227
self.fig.add_shape(opacity=0.1, fillcolor="red")
@@ -236,6 +239,9 @@ def test_update_shapes(self):
236239
self.assert_update("shapes", [2, 3, 4], patch=dict(opacity=0), row=1)
237240
self.assert_update("shapes", [2, 5], patch=dict(opacity=0), col=1)
238241
self.assert_update("shapes", [4], patch=dict(opacity=0), secondary_y=True)
242+
243+
def test_shape_attributes(self):
244+
self.fig.update_shapes(text='hi')
239245

240246
def test_update_images(self):
241247
(
@@ -254,3 +260,6 @@ def test_update_images(self):
254260
self.assert_update("images", [2, 3, 4], patch=dict(opacity=0), row=1)
255261
self.assert_update("images", [2, 5], patch=dict(opacity=0), col=1)
256262
self.assert_update("images", [4], patch=dict(opacity=0), secondary_y=True)
263+
264+
def test_image_attributes(self):
265+
self.fig.update_layout_images(text='hi')

0 commit comments

Comments
 (0)