Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw committed Aug 22, 2023
1 parent 59e91bd commit 2b88733
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,8 @@ async def mock_arun_chain(
tags: Optional[List[str]] = None,
callbacks: Optional[Any] = None,
**kwargs: Any,
) -> List[Dict[str, Any]]:
return [{"result": f"Result for example {example.id}"}]
) -> Dict[str, Any]:
return {"result": f"Result for example {example.id}"}

def mock_create_project(*args: Any, **kwargs: Any) -> Any:
proj = mock.MagicMock()
Expand All @@ -324,9 +324,10 @@ def mock_create_project(*args: Any, **kwargs: Any) -> Any:
)

expected = {
uuid_: [
{"result": f"Result for example {uuid.UUID(uuid_)}"} for _ in range(1)
]
uuid_: {
"output": {"result": f"Result for example {uuid.UUID(uuid_)}"},
"feedback": [],
}
for uuid_ in uuids
}
assert results["results"] == expected

0 comments on commit 2b88733

Please sign in to comment.