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

Function test_pch001_patch_operations

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

Source from the content-addressed store, hash-verified

10
11@flaky.flaky(max_runs=3)
12def test_pch001_patch_operations(dash_duo):
13
14 app = Dash(__name__)
15
16 app.layout = html.Div(
17 [
18 html.Div(
19 [
20 dcc.Input(id="set-value"),
21 html.Button("Set", id="set-btn"),
22 ]
23 ),
24 html.Div(
25 [
26 dcc.Input(id="append-value"),
27 html.Button("Append", id="append-btn"),
28 ]
29 ),
30 html.Div(
31 [
32 dcc.Input(id="prepend-value"),
33 html.Button("prepend", id="prepend-btn"),
34 ]
35 ),
36 html.Div(
37 [
38 dcc.Input(id="insert-value"),
39 dcc.Input(id="insert-index", type="number", value=1),
40 html.Button("insert", id="insert-btn"),
41 ]
42 ),
43 html.Div(
44 [
45 dcc.Input(id="extend-value"),
46 html.Button("extend", id="extend-btn"),
47 ]
48 ),
49 html.Div(
50 [
51 dcc.Input(id="merge-value"),
52 html.Button("Merge", id="merge-btn"),
53 ]
54 ),
55 html.Button("Delete", id="delete-btn"),
56 html.Button("Delete index", id="delete-index"),
57 html.Button("Clear", id="clear-btn"),
58 html.Button("Reverse", id="reverse-btn"),
59 html.Button("Remove", id="remove-btn"),
60 dcc.Store(
61 data={
62 "value": "unset",
63 "n_clicks": 0,
64 "array": ["initial"],
65 "delete": "Delete me",
66 },
67 id="store",
68 ),
69 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…