Skip to content

Commit 2e20540

Browse files
authored
Update tests
1 parent 321c772 commit 2e20540

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,10 @@ def select_traces_fixture():
430430

431431
def test_select_traces_integer(select_traces_fixture):
432432
fig = select_traces_fixture
433+
# check that selecting first trace does indeed only select the first
434+
tr = list(fig.select_traces(selector=0))
435+
assert len(tr) == 1
436+
assert tr[0].y[1] == 0
433437
# check we can index last trace selected
434438
tr = list(fig.select_traces(selector=-1))[0]
435439
assert tr.y[1] == 20

0 commit comments

Comments
 (0)