Test table render_cell async as well as query results, refs #1425

This commit is contained in:
Simon Willison 2021-08-08 16:07:52 -07:00
commit 818b0b76a2

View file

@ -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