mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 00:58:30 +00:00
style: Fix import sorting in tests
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -2,9 +2,10 @@
|
|||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
from typing import Dict, List, Optional, Set, Tuple
|
||||||
|
from uuid import uuid4
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from uuid import uuid4
|
|
||||||
from pydantic import BaseModel, Field
|
from pydantic import BaseModel, Field
|
||||||
|
|
||||||
from crewai.flow.flow import Flow, and_, listen, or_, router, start
|
from crewai.flow.flow import Flow, and_, listen, or_, router, start
|
||||||
@@ -399,8 +400,8 @@ def test_flow_with_nested_objects_and_locks():
|
|||||||
@classmethod
|
@classmethod
|
||||||
def __get_pydantic_core_schema__(cls, source_type, handler):
|
def __get_pydantic_core_schema__(cls, source_type, handler):
|
||||||
from pydantic_core.core_schema import (
|
from pydantic_core.core_schema import (
|
||||||
with_info_plain_validator_function,
|
|
||||||
str_schema,
|
str_schema,
|
||||||
|
with_info_plain_validator_function,
|
||||||
)
|
)
|
||||||
def validate(value, _):
|
def validate(value, _):
|
||||||
if isinstance(value, cls):
|
if isinstance(value, cls):
|
||||||
@@ -520,10 +521,9 @@ async def test_flow_with_async_locks():
|
|||||||
|
|
||||||
def test_flow_with_complex_nested_objects():
|
def test_flow_with_complex_nested_objects():
|
||||||
"""Test that Flow properly handles complex nested objects."""
|
"""Test that Flow properly handles complex nested objects."""
|
||||||
import threading
|
|
||||||
import asyncio
|
import asyncio
|
||||||
|
import threading
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from typing import Dict, List, Optional, Set, Tuple
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class ThreadSafePrimitives:
|
class ThreadSafePrimitives:
|
||||||
|
|||||||
Reference in New Issue
Block a user