mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-08 23:58:34 +00:00
Fix lint and MRO issues in Pydantic compatibility tests
- Remove unused pytest import to fix lint error - Change inheritance order to FlowTrackable, BaseModel to fix MRO error - Follows same pattern as LiteAgent and Crew classes in codebase Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
"""Tests for Pydantic version compatibility issues."""
|
||||
|
||||
import pytest
|
||||
from unittest.mock import patch, MagicMock
|
||||
from pydantic import BaseModel
|
||||
|
||||
@@ -8,7 +7,7 @@ from crewai.flow.flow_trackable import FlowTrackable
|
||||
from crewai.flow import Flow
|
||||
|
||||
|
||||
class TestFlowTrackable(BaseModel, FlowTrackable):
|
||||
class TestFlowTrackable(FlowTrackable, BaseModel):
|
||||
"""Test class that inherits from FlowTrackable for testing."""
|
||||
name: str = "test"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user