tasks 033 updated
This commit is contained in:
@@ -27,7 +27,7 @@ def anyio_backend():
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def mock_save_conversation():
|
||||
with patch("src.agent.app._save_conversation", new_callable=AsyncMock):
|
||||
with patch("src.agent.app.save_conversation", new_callable=AsyncMock):
|
||||
yield
|
||||
|
||||
|
||||
@@ -193,7 +193,9 @@ async def test_handler_resume_confirm():
|
||||
|
||||
message = {"text": "confirm", "files": None}
|
||||
|
||||
with patch("src.agent.app.create_agent") as mock_create:
|
||||
# Patch create_agent in _confirmation because handle_resume (now in _confirmation.py)
|
||||
# imports create_agent directly from langgraph_setup
|
||||
with patch("src.agent._confirmation.create_agent") as mock_create:
|
||||
mock_graph = MagicMock()
|
||||
async def _empty_stream(*args, **kwargs):
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user