render_cell() can now return an awaitable, refs

This commit is contained in:
Simon Willison 2021-08-08 16:04:42 -07:00
commit 3bb6409a6c
7 changed files with 66 additions and 21 deletions

View file

@ -185,6 +185,11 @@ def test_hook_render_cell_demo(app_client):
} == json.loads(td.string)
def test_hook_render_cell_async(app_client):
response = app_client.get("/fixtures?sql=select+'RENDER_CELL_ASYNC'")
assert b"RENDER_CELL_ASYNC_RESULT" in response.body
def test_plugin_config(app_client):
assert {"depth": "table"} == app_client.ds.plugin_config(
"name-of-plugin", database="fixtures", table="sortable"