mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Test table render_cell async as well as query results, refs #1425
This commit is contained in:
parent
3bb6409a6c
commit
818b0b76a2
1 changed files with 5 additions and 2 deletions
|
|
@ -185,8 +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'")
|
||||
@pytest.mark.parametrize(
|
||||
"path", ("/fixtures?sql=select+'RENDER_CELL_ASYNC'", "/fixtures/simple_primary_key")
|
||||
)
|
||||
def test_hook_render_cell_async(app_client, path):
|
||||
response = app_client.get(path)
|
||||
assert b"RENDER_CELL_ASYNC_RESULT" in response.body
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue