aws / chalice

Python Serverless Microframework for AWS
Apache License 2.0
10.67k stars 1.01k forks source link

Use unittest.mock instead of mock if available #2062

Closed davide125 closed 11 months ago

davide125 commented 1 year ago

Description of changes: mock is deprecated and has been replaced by unittest.mock in recent Python versions, so use that instead if it's available.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.