()
| 54 | |
| 55 | @pytest.fixture |
| 56 | def multi_output_app(): |
| 57 | app = Dash(__name__) |
| 58 | app.layout = html.Div( |
| 59 | [ |
| 60 | dcc.Dropdown(id="dd", options=["a", "b"], value="a"), |
| 61 | dcc.Dropdown(id="dd2"), |
| 62 | html.Div(id="out"), |
| 63 | ] |
| 64 | ) |
| 65 | |
| 66 | @app.callback( |
| 67 | Output("dd2", "options"), |
| 68 | Output("out", "children"), |
| 69 | Input("dd", "value"), |
| 70 | ) |
| 71 | def update(val): |
| 72 | return [], val |
| 73 | |
| 74 | app_context.set(app) |
| 75 | app.mcp_callback_map = CallbackAdapterCollection(app) |
| 76 | return app |
| 77 | |
| 78 | |
| 79 | @pytest.fixture |
nothing calls this directly
no test coverage detected
searching dependent graphs…