from wherever import get_presigned_upload
from moto import mock_aws
with mock_aws():
get_presigned_upload("bucket", "hello")
If using AWS I get errors trying to run this. NoCredentialsError is the specific, but any boto error will do. If I don't, regardless of the bucket existing or having access; code passes. Right now this means I'm calling list_objects_v2 which successfully errors when I attempt; with a ClientError.
Reporting Bugs
Python version: 3.11.6 Moto version: 5.0.9 OS Version: OSX Boto3 version: 1.34.122
Code
called (lets assume I imported directly
If using AWS I get errors trying to run this. NoCredentialsError is the specific, but any boto error will do. If I don't, regardless of the bucket existing or having access; code passes. Right now this means I'm calling
list_objects_v2
which successfully errors when I attempt; with a ClientError.