chore: apply ruff auto-fixes and remove dead AST scripts
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
from typing import Generator
|
||||
import pytest
|
||||
from unittest.mock import MagicMock, patch, AsyncMock, ANY
|
||||
from unittest.mock import patch, ANY
|
||||
import asyncio
|
||||
import time
|
||||
from gui_2 import App
|
||||
from events import UserRequestEvent
|
||||
import ai_client
|
||||
|
||||
@pytest.fixture
|
||||
def mock_app() -> Generator[App, None, None]:
|
||||
@@ -94,7 +93,7 @@ def test_user_request_error_handling(mock_app: App) -> None:
|
||||
"""
|
||||
app = mock_app
|
||||
with (
|
||||
patch('ai_client.send', side_effect=Exception("API Failure")) as mock_send,
|
||||
patch('ai_client.send', side_effect=Exception("API Failure")),
|
||||
patch('ai_client.set_custom_system_prompt'),
|
||||
patch('ai_client.set_model_params'),
|
||||
patch('ai_client.set_agent_tools')
|
||||
|
||||
Reference in New Issue
Block a user