ref: Make create_or_update_starter_projects async (#5165)
Make create_or_update_starter_projects async
This commit is contained in:
parent
63bdcb9d03
commit
fe6ec1690b
8 changed files with 59 additions and 60 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue