From 87571921b59733c6a06744b60bb843eeb91891f5 Mon Sep 17 00:00:00 2001 From: Markov Andrey Date: Tue, 30 Jun 2026 21:06:47 +0000 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D0=B4=D0=B0=D0=BA=D1=82=D0=B8?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=B0=D1=82=D1=8C=20test=5Fendpoints.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/integration/test_endpoints.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/integration/test_endpoints.py b/tests/integration/test_endpoints.py index dab884e..fbf9d4c 100644 --- a/tests/integration/test_endpoints.py +++ b/tests/integration/test_endpoints.py @@ -6,15 +6,9 @@ import pytest import httpx from unittest.mock import AsyncMock, patch -# Используем httpx.AsyncClient для запросов к приложению -# Предполагаем, что приложение запущено в тестовом режиме или используем TestClient из FastAPI. - @pytest.mark.asyncio async def test_clear_endpoint(): - # В реальном тесте нужно запустить приложение и использовать TestClient. - # Здесь приведён пример с моками. async with httpx.AsyncClient() as client: - # Мокаем зависимость with patch("rag.rag_server.get_orchestrator") as mock_orch: mock_orch.return_value.clear_kb = AsyncMock(return_value={"status": "ok"}) response = await client.post(