mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-07-09 17:28:35 +00:00
test: avoid browser launch in chat controller test
This commit is contained in:
parent
0717c0258f
commit
377589e70d
1 changed files with 4 additions and 0 deletions
|
|
@ -59,6 +59,10 @@ class TestChatController:
|
|||
) as mock_step_solve,
|
||||
patch("app.controller.chat_controller.load_dotenv"),
|
||||
patch("app.controller.chat_controller.set_current_task_id"),
|
||||
patch(
|
||||
"app.controller.chat_controller._prepare_browser_for_request_with_timeout",
|
||||
new=AsyncMock(return_value=True),
|
||||
),
|
||||
patch("pathlib.Path.mkdir"),
|
||||
patch("pathlib.Path.home", return_value=MagicMock()),
|
||||
):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue