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

pull/868/merge
Simon Willison 2021-08-08 16:07:52 -07:00
rodzic 3bb6409a6c
commit 818b0b76a2
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

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