fix: resolve lint issues in human input event streaming implementation

- Remove unused imports from server modules and test files
- Fix undefined variable references in test assertions
- All ruff checks now pass locally

Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
Devin AI
2025-08-02 16:10:35 +00:00
parent ea560d0af1
commit f133d13a00
5 changed files with 5 additions and 14 deletions

View File

@@ -1,10 +1,7 @@
import pytest
import asyncio
import json
from unittest.mock import MagicMock, patch
from crewai.server.event_stream_manager import EventStreamManager
from crewai.utilities.events.task_events import HumanInputRequiredEvent, HumanInputCompletedEvent
from crewai.utilities.events.task_events import HumanInputRequiredEvent
class TestEventStreamManager:

View File

@@ -1,7 +1,4 @@
import pytest
import asyncio
import json
from unittest.mock import patch, MagicMock
try:
from fastapi.testclient import TestClient