mirror of
https://github.com/Hopiu/llm.git
synced 2026-03-17 05:00:25 +00:00
Test that async def methods work on Toolbox
This commit is contained in:
parent
218bd10d6d
commit
00f44a848a
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue