We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 321c772 commit 2e20540Copy full SHA for 2e20540
packages/python/plotly/plotly/tests/test_core/test_update_objects/test_update_traces.py
@@ -430,6 +430,10 @@ def select_traces_fixture():
430
431
def test_select_traces_integer(select_traces_fixture):
432
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
437
# check we can index last trace selected
438
tr = list(fig.select_traces(selector=-1))[0]
439
assert tr.y[1] == 20
0 commit comments