Skip to content

Commit

Permalink
mock aws
Browse files Browse the repository at this point in the history
  • Loading branch information
tcapelle committed Dec 20, 2024
1 parent 6f205bc commit 0c7b415
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/integrations/bedrock/bedrock_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import boto3
import botocore
import pytest
from moto import mock_aws
from unittest.mock import patch

import weave
Expand Down Expand Up @@ -99,6 +100,7 @@ def __iter__(self):


@pytest.mark.skip_clickhouse_client
@mock_aws
def test_bedrock_converse(client: weave.trace.weave_client.WeaveClient) -> None:
bedrock_client = boto3.client("bedrock-runtime")
patch_client(bedrock_client)
Expand Down Expand Up @@ -148,6 +150,7 @@ def test_bedrock_converse(client: weave.trace.weave_client.WeaveClient) -> None:


@pytest.mark.skip_clickhouse_client
@mock_aws
def test_bedrock_converse_stream(client: weave.trace.weave_client.WeaveClient) -> None:
bedrock_client = boto3.client("bedrock-runtime")
patch_client(bedrock_client)
Expand Down

0 comments on commit 0c7b415

Please sign in to comment.