From 00f44a848ac2bbb83c9508ffa1784b3669994b63 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Mon, 26 May 2025 10:08:31 -0700 Subject: [PATCH] Test that async def methods work on Toolbox --- tests/test_plugins.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_plugins.py b/tests/test_plugins.py index fdf175e..48024cb 100644 --- a/tests/test_plugins.py +++ b/tests/test_plugins.py @@ -505,7 +505,8 @@ def test_register_toolbox(tmpdir, logs_db): def __init__(self, path: str): self.path = path - def list_files(self): + async def list_files(self): + # async here just to confirm that works return [str(item) for item in pathlib.Path(self.path).glob("*")] # Test the Python API