mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-17 15:35:21 +02:00
get_human_input interface
This commit is contained in:
parent
c6e42631da
commit
ed8777db99
3 changed files with 20 additions and 3 deletions
|
|
@ -6,7 +6,7 @@ from metagpt.actions.di.ask_review import AskReview
|
|||
@pytest.mark.asyncio
|
||||
async def test_ask_review(mocker):
|
||||
mock_review_input = "confirm"
|
||||
mocker.patch("builtins.input", return_value=mock_review_input)
|
||||
mocker.patch("metagpt.actions.di.ask_review.get_human_input", return_value=mock_review_input)
|
||||
rsp, confirmed = await AskReview().run()
|
||||
assert rsp == mock_review_input
|
||||
assert confirmed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue