Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def s3_mock(): with mock_s3(): _s3_accessor.s3 = boto3.resource('s3') yield