ref: Make create_or_update_starter_projects async (#5165)

Make create_or_update_starter_projects async
This commit is contained in:
Christophe Bornet 2024-12-10 08:51:35 +01:00 • committed by GitHub
commit fe6ec1690b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 59 additions and 60 deletions

View file

@ -22,7 +22,7 @@ from langflow.load import load_flow_from_json
async def test_load_flow_from_json_object():
"""Test loading a flow from a json file and applying tweaks."""
result = await asyncio.to_thread(load_starter_projects)
result = await load_starter_projects()
project = result[0][1]
loaded = await asyncio.to_thread(load_flow_from_json, project)
assert loaded is not None