Made register_output_renderer callback optionally awaitable, closes #776

This commit is contained in:
Simon Willison 2020-05-27 19:43:30 -07:00
commit 57f48b8416
4 changed files with 17 additions and 6 deletions

View file

@ -347,6 +347,7 @@ def test_register_output_renderer_all_parameters(app_client):
body = response.body.decode("utf-8")
body = at_memory_re.sub(" at 0xXXX", body)
assert {
"1+1": 2,
"datasette": "<datasette.app.Datasette object at 0xXXX>",
"columns": [
"pk",