mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 16:48:30 +00:00
Fix import formatting issues in test file
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -20,8 +20,8 @@ class TestCrewaiAlias(unittest.TestCase):
|
|||||||
|
|
||||||
def test_crewai_instance_creation(self):
|
def test_crewai_instance_creation(self):
|
||||||
"""Ensure Crewai can be instantiated just like Crew."""
|
"""Ensure Crewai can be instantiated just like Crew."""
|
||||||
from crewai.crew import Crew, Crewai
|
|
||||||
from crewai.agent import Agent
|
from crewai.agent import Agent
|
||||||
|
from crewai.crew import Crew, Crewai
|
||||||
|
|
||||||
test_agent = Agent(
|
test_agent = Agent(
|
||||||
role="Test Agent",
|
role="Test Agent",
|
||||||
@@ -37,9 +37,9 @@ class TestCrewaiAlias(unittest.TestCase):
|
|||||||
|
|
||||||
def test_crewai_deprecation_warning(self):
|
def test_crewai_deprecation_warning(self):
|
||||||
"""Test that using Crewai emits a deprecation warning."""
|
"""Test that using Crewai emits a deprecation warning."""
|
||||||
import warnings
|
|
||||||
import importlib
|
import importlib
|
||||||
import crewai.crew
|
import crewai.crew
|
||||||
|
import warnings
|
||||||
|
|
||||||
with warnings.catch_warnings(record=True) as w:
|
with warnings.catch_warnings(record=True) as w:
|
||||||
warnings.simplefilter("always")
|
warnings.simplefilter("always")
|
||||||
|
|||||||
Reference in New Issue
Block a user