(dash_duo)
| 10 | |
| 11 | @flaky.flaky(max_runs=3) |
| 12 | def 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"), |
nothing calls this directly
no test coverage detected
searching dependent graphs…