datasette/tests/plugins
Claude 1a7b027b60
Make setting(), settings_dict(), and plugin_config() async
This change makes all settings and plugin config access asynchronous in
preparation for a future plugin hook that will allow fetching settings
from a database or via HTTP.

Changes:
- Datasette.setting() is now async
- Datasette.settings_dict() is now async
- Datasette.plugin_config() is now async
- Added _setting_sync() for contexts that cannot await (threads, sync hooks)
- Added _plugin_config_sync() for contexts that cannot await
- Updated all callers throughout the codebase to use await
- Updated tests to work with async methods
2025-12-30 16:21:16 +00:00
..
messages_output_renderer.py Flash messages mechanism, closes #790 2020-06-02 14:12:18 -07:00
my_plugin.py Make setting(), settings_dict(), and plugin_config() async 2025-12-30 16:21:16 +00:00
my_plugin_2.py Make setting(), settings_dict(), and plugin_config() async 2025-12-30 16:21:16 +00:00
register_output_renderer.py register_output_renderer can now return Response, closes #953 2020-08-27 21:02:50 -07:00
sleep_sql_function.py Remove undocumented sqlite_functions mechanism, closes #1567 2021-12-17 17:54:39 -08:00
view_name.py Refactored test plugins into tests/plugins, closes #775 2020-05-27 17:57:25 -07:00