From f2a110f7e9f8a10417cb9f7d48867e623261d5e1 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Mon, 7 Aug 2023 13:47:53 -0700 Subject: [PATCH] Expose async_view_for_class.view_class for test_routes test --- datasette/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/datasette/app.py b/datasette/app.py index 595ce78092..b2644ace17 100644 --- a/datasette/app.py +++ b/datasette/app.py @@ -1716,6 +1716,7 @@ async def async_view_for_class(request, send): datasette=datasette, ) + async_view_for_class.view_class = view_class return async_view_for_class