MCPcopy
hub / github.com/plotly/dash / test_pch007_patch_operations_side_updates

Function test_pch007_patch_operations_side_updates

tests/integration/test_patch.py:577–886  ·  view source on GitHub ↗
(dash_duo)

Source from the content-addressed store, hash-verified

575
576@flaky.flaky(max_runs=3)
577def test_pch007_patch_operations_side_updates(dash_duo):
578
579 app = Dash(__name__)
580
581 app.layout = html.Div(
582 [
583 html.Div(
584 [
585 dcc.Input(id="set-value"),
586 html.Button("Set", id="set-btn"),
587 ]
588 ),
589 html.Div(
590 [
591 dcc.Input(id="append-value"),
592 html.Button("Append", id="append-btn"),
593 ]
594 ),
595 html.Div(
596 [
597 dcc.Input(id="prepend-value"),
598 html.Button("prepend", id="prepend-btn"),
599 ]
600 ),
601 html.Div(
602 [
603 dcc.Input(id="insert-value"),
604 dcc.Input(id="insert-index", type="number", value=1),
605 html.Button("insert", id="insert-btn"),
606 ]
607 ),
608 html.Div(
609 [
610 dcc.Input(id="extend-value"),
611 html.Button("extend", id="extend-btn"),
612 ]
613 ),
614 html.Div(
615 [
616 dcc.Input(id="merge-value"),
617 html.Button("Merge", id="merge-btn"),
618 ]
619 ),
620 html.Button("Delete", id="delete-btn"),
621 html.Button("Delete index", id="delete-index"),
622 html.Button("Clear", id="clear-btn"),
623 html.Button("Reverse", id="reverse-btn"),
624 html.Button("Remove", id="remove-btn"),
625 dcc.Store(
626 data={
627 "value": "unset",
628 "n_clicks": 0,
629 "array": ["initial"],
630 "delete": "Delete me",
631 },
632 id="store",
633 ),
634 html.Div(id="store-content"),

Callers

nothing calls this directly

Calls 12

clientside_callbackMethod · 0.95
DashClass · 0.90
OutputClass · 0.90
InputClass · 0.90
untilFunction · 0.90
get_logsMethod · 0.80
find_elementMethod · 0.80
send_keysMethod · 0.80
get_outputFunction · 0.70
start_serverMethod · 0.45
clickMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…