Sunday, 7th August 2022
TIL
Mocking a Textract LimitExceededException with boto
— For [s3-ocr issue #21](https://github.com/simonw/s3-ocr/issues/21) I needed to write a test that simulates what happens when Amazon Textract returns a "LimitExceededException". When using boto this error presents itself as an exception: