mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-20 21:38:14 +00:00
fix: resolve lint issues in ChunkBasedTask implementation
- Remove unused Dict import from typing - Fix f-string without placeholders - Remove unused imports and variables in tests Co-Authored-By: Jo\u00E3o <joao@crewai.com>
This commit is contained in:
@@ -4,7 +4,6 @@ from pathlib import Path
|
||||
from unittest.mock import Mock, patch
|
||||
|
||||
from crewai.tasks.chunk_based_task import ChunkBasedTask
|
||||
from crewai.agent import Agent
|
||||
from crewai.tasks.task_output import TaskOutput
|
||||
|
||||
|
||||
@@ -110,7 +109,7 @@ class TestChunkBasedTask:
|
||||
mock_agent.role = "test_agent"
|
||||
mock_agent.crew = None
|
||||
|
||||
result = task._execute_core(mock_agent, None, None)
|
||||
task._execute_core(mock_agent, None, None)
|
||||
|
||||
assert len(task.chunk_results) > 1
|
||||
assert mock_execute.call_count > len(task.chunk_results)
|
||||
|
||||
Reference in New Issue
Block a user