fix linters

This commit is contained in:
João Moura
2024-12-27 16:31:20 -03:00
parent 9a55b54977
commit b5f2161e34
6 changed files with 17 additions and 18 deletions

View File

@@ -417,9 +417,11 @@ def test_crew_with_delegating_agents():
@pytest.mark.vcr(filter_headers=["authorization"])
def test_crew_with_delegating_agents_should_not_override_task_tools():
from typing import Type
from crewai.tools import BaseTool
from pydantic import BaseModel, Field
from crewai.tools import BaseTool
class TestToolInput(BaseModel):
"""Input schema for TestTool."""
query: str = Field(..., description="Query to process")
@@ -470,9 +472,9 @@ def test_crew_with_delegating_agents_should_not_override_task_tools():
@pytest.mark.vcr(filter_headers=["authorization"])
def test_crew_with_delegating_agents_should_not_override_agent_tools():
from typing import Type
from crewai.tools import BaseTool
from pydantic import BaseModel, Field
from typing import Type
class TestToolInput(BaseModel):
"""Input schema for TestTool."""
@@ -584,9 +586,9 @@ def test_task_tools_override_agent_tools_with_allow_delegation():
"""
Test that task tools override agent tools while preserving delegation tools when allow_delegation=True
"""
from typing import Type
from crewai.tools import BaseTool
from pydantic import BaseModel, Field
from typing import Type
class TestToolInput(BaseModel):
query: str = Field(..., description="Query to process")
@@ -2883,10 +2885,10 @@ def test_task_tools_preserve_code_execution_tools():
"""
Test that task tools don't override code execution tools when allow_code_execution=True
"""
from pydantic import BaseModel, Field
from typing import Type
from crewai.tools import BaseTool
from crewai_tools import CodeInterpreterTool
from pydantic import BaseModel, Field
class TestToolInput(BaseModel):
"""Input schema for TestTool."""