moto icon indicating copy to clipboard operation
moto copied to clipboard

Unit tests for boto3 client('bedrock-runtime')

Open cbishop opened this issue 1 year ago • 1 comments

I am writing unit tests for a variety of AWS services and have found moto to be very useful.

Unfortunately, I'm stuck on testing boto3 with a bedrock-runtime client.

Ideally, you would add support for this client, but I know you have many requests and it would take some time.

Any advice on the best way to unit tests boto3 and bedrock-runtime? I need to simulate invoking an AI Large Language Model with Bedrock.

cbishop avatar May 13 '24 13:05 cbishop

Hi @cbishop, you could patch boto3 itself, before it even reaches Moto?

See our docs here: http://docs.getmoto.org/en/latest/docs/services/patching_other_services.html

bblommers avatar May 13 '24 18:05 bblommers

Closing this due to inactivity - I'll assume it is fixed. Feel free to let us know if you have any other questions/issues though.

bblommers avatar Jun 28 '24 18:06 bblommers