(index: str)
| 144 | def test_hook007_hook_index(hook_cleanup, dash_duo): |
| 145 | @hooks.index() |
| 146 | def hook_index(index: str): |
| 147 | body = "<body>" |
| 148 | ib = index.find(body) + len(body) |
| 149 | injected = '<div id="hooked">Hooked</div>' |
| 150 | new_index = index[ib:] + injected + index[: ib + 1] |
| 151 | return new_index |
| 152 | |
| 153 | app = Dash() |
| 154 | app.layout = html.Div(["index"]) |
nothing calls this directly
no test coverage detected
searching dependent graphs…