fix: use json_schema_extra instead of deprecated Field extra args (#417)

This commit is contained in:
Gabe Milani
2025-08-14 18:52:56 -03:00
committed by GitHub
parent 99e174e575
commit 16d613488b
2 changed files with 20 additions and 5 deletions

View File

@@ -0,0 +1,10 @@
import pytest
from pydantic.warnings import PydanticDeprecatedSince20
@pytest.mark.filterwarnings("error", category=PydanticDeprecatedSince20)
def test_import_tools_without_pydantic_deprecation_warnings():
# This test is to ensure that the import of crewai_tools does not raise any Pydantic deprecation warnings.
import crewai_tools
assert crewai_tools