From d60bd6ad13ef908d7e66a677caee20536f3fb277 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sat, 13 Jun 2020 11:15:33 -0700 Subject: [PATCH] Update plugin tests, refs #834 --- tests/fixtures.py | 1 + tests/plugins/my_plugin_2.py | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/fixtures.py b/tests/fixtures.py index 09819575..e2f90f09 100644 --- a/tests/fixtures.py +++ b/tests/fixtures.py @@ -64,6 +64,7 @@ EXPECTED_PLUGINS = [ "extra_template_vars", "permission_allowed", "render_cell", + "startup", ], }, { diff --git a/tests/plugins/my_plugin_2.py b/tests/plugins/my_plugin_2.py index bdfaea8d..f4a082a0 100644 --- a/tests/plugins/my_plugin_2.py +++ b/tests/plugins/my_plugin_2.py @@ -127,4 +127,5 @@ def startup(datasette): async def inner(): result = await datasette.get_database().execute("select 1 + 1") datasette._startup_hook_calculation = result.first()[0] + return inner