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

@@ -167,7 +167,7 @@ class TestHumanInputEventIntegration:
with patch.object(crewai_event_bus, 'emit', side_effect=capture_event), \
patch('builtins.input', return_value='test'):
result = self.executor._ask_human_input("Test result")
self.executor._ask_human_input("Test result")
assert len(events_captured) == 2
required_event = events_captured[0][1]
@@ -185,7 +185,7 @@ class TestHumanInputEventIntegration:
with patch.object(crewai_event_bus, 'emit', side_effect=capture_event), \
patch('builtins.input', return_value='test'):
result = self.executor._ask_human_input("Test result")
self.executor._ask_human_input("Test result")
assert len(events_captured) == 2
required_event = events_captured[0][1]
@@ -202,7 +202,7 @@ class TestHumanInputEventIntegration:
with patch.object(crewai_event_bus, 'emit', side_effect=capture_event), \
patch('builtins.input', return_value='test'):
result = self.executor._ask_human_input("Test result")
self.executor._ask_human_input("Test result")
assert len(events_captured) == 2
required_event = events_captured[0][1]