You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
When using Moto 5.0.9 with Python 3 on macOS, the put_item function is trying to connect to the real AWS DynamoDB service instead of using the Moto mock despite using the @mock_aws decorator.
The repository that int_repo is using uses boto3 to talk to DynamoDB.
What happens?
The test is failing. botocore.errorfactory.ResourceNotFoundException: An error occurred (ResourceNotFoundException) when calling the PutItem operation: Requested resource not found
What should happen?
The test should pass, because dynamodb connects to the mocked up one.
Summary:
When using Moto 5.0.9 with Python 3 on macOS, the
put_item
function is trying to connect to the real AWS DynamoDB service instead of using the Moto mock despite using the @mock_aws decorator.The repository that int_repo is using uses boto3 to talk to DynamoDB.
What happens?
The test is failing.
botocore.errorfactory.ResourceNotFoundException: An error occurred (ResourceNotFoundException) when calling the PutItem operation: Requested resource not found
What should happen?
The test should pass, because dynamodb connects to the mocked up one.
Lambda to test:
Test:
The text was updated successfully, but these errors were encountered: