We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2c2f74 commit b99b337Copy full SHA for b99b337
1 file changed
tests/otel_integrations/test_anthropic.py
@@ -23,8 +23,17 @@
23
from inline_snapshot import snapshot
24
25
import logfire
26
+from logfire._internal.utils import get_version
27
from logfire.testing import TestExporter
28
29
+pytestmark = [
30
+ pytest.mark.skipif(
31
+ get_version(pydantic.__version__) < get_version('2.5'),
32
+ reason='Requires Pydantic 2.5 or higher to import genai-prices and set operation.cost attribute.',
33
+ ),
34
+]
35
+
36
37
ANY_ADAPTER = pydantic.TypeAdapter(Any) # type: ignore
38
39
0 commit comments