mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-23 20:23:00 +00:00
fix(ci): ignore hanzo-tools-core deprecation warning in pytest
This commit is contained in:
@@ -3,14 +3,9 @@
|
||||
import sys
|
||||
import time
|
||||
import asyncio
|
||||
import warnings
|
||||
|
||||
import pytest
|
||||
|
||||
# Filter the deprecation warning from hanzo-tools-core
|
||||
# It's expected since we're testing the backwards-compat layer
|
||||
warnings.filterwarnings("ignore", message="hanzo-tools-core is deprecated")
|
||||
|
||||
|
||||
def _module_installed(module_name: str) -> bool:
|
||||
"""Check if a module is installed."""
|
||||
|
||||
+2
-1
@@ -158,7 +158,8 @@ filterwarnings = [
|
||||
"error",
|
||||
"ignore:OpenTelemetry configuration.*is not supported by Datadog:UserWarning",
|
||||
"ignore::DeprecationWarning:ddtrace.*",
|
||||
"ignore:Support for class-based `config` is deprecated:pydantic.warnings.PydanticDeprecatedSince20"
|
||||
"ignore:Support for class-based `config` is deprecated:pydantic.warnings.PydanticDeprecatedSince20",
|
||||
"ignore:hanzo-tools-core is deprecated:DeprecationWarning"
|
||||
]
|
||||
|
||||
[tool.pyright]
|
||||
|
||||
Reference in New Issue
Block a user