tasks 033 updated

This commit is contained in:
2026-06-30 19:05:17 +03:00
parent f1810090b6
commit e174c11d4a
23 changed files with 1976 additions and 213 deletions

View File

@@ -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