Skip to content

Commit

Permalink
chore(internal): minor formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertCraigie committed Nov 27, 2024
1 parent be4e73a commit 493020e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/lib/test_bedrock.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ async def test_messages_retries_async(respx_mock: MockRouter) -> None:
== "https://bedrock-runtime.us-east-1.amazonaws.com/model/anthropic.claude-3-sonnet-20240229-v1:0/invoke"
)


@pytest.mark.respx()
def test_application_inference_profile(respx_mock: MockRouter) -> None:
respx_mock.post(re.compile(r"https://bedrock-runtime\.us-east-1\.amazonaws\.com/model/.*/invoke")).mock(
Expand All @@ -113,7 +114,6 @@ def test_application_inference_profile(respx_mock: MockRouter) -> None:
)

calls = cast("list[MockRequestCall]", respx_mock.calls)

assert len(calls) == 2

assert (
Expand All @@ -123,4 +123,4 @@ def test_application_inference_profile(respx_mock: MockRouter) -> None:
assert (
calls[1].request.url
== "https://bedrock-runtime.us-east-1.amazonaws.com/model/arn:aws:bedrock:us-east-1:123456789012:application-inference-profile%2Fjf2sje1c0jnb/invoke"
)
)

0 comments on commit 493020e

Please sign in to comment.