Skip to content

Commit 16342b1

Browse files
committed
move import up
1 parent 96b3ad6 commit 16342b1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/integrations/anthropic/test_anthropic.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import pytest
22
from unittest import mock
3+
import json
34

45
try:
56
from unittest.mock import AsyncMock
@@ -926,8 +927,6 @@ def mock_messages_create(*args, **kwargs):
926927
assert SPANDATA.GEN_AI_REQUEST_MESSAGES in span["data"]
927928

928929
# Parse the stored messages
929-
import json
930-
931930
stored_messages = json.loads(span["data"][SPANDATA.GEN_AI_REQUEST_MESSAGES])
932931

933932
# Verify that "ai" role was mapped to "assistant"

0 commit comments

Comments
 (0)