()
| 33 | |
| 34 | @pytest.fixture |
| 35 | def simple_app(): |
| 36 | app = Dash(__name__) |
| 37 | app.layout = html.Div( |
| 38 | [ |
| 39 | html.Label("Your Name", htmlFor="inp"), |
| 40 | dcc.Input(id="inp", type="text"), |
| 41 | html.Div(id="out"), |
| 42 | ] |
| 43 | ) |
| 44 | |
| 45 | @app.callback(Output("out", "children"), Input("inp", "value")) |
| 46 | def update(val): |
| 47 | """Update output.""" |
| 48 | return val |
| 49 | |
| 50 | app_context.set(app) |
| 51 | app.mcp_callback_map = CallbackAdapterCollection(app) |
| 52 | return app |
| 53 | |
| 54 | |
| 55 | @pytest.fixture |
nothing calls this directly
no test coverage detected
searching dependent graphs…