mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
render_cell() can now return an awaitable, refs
This commit is contained in:
parent
de5ce2e563
commit
3bb6409a6c
7 changed files with 66 additions and 21 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue