MCPcopy Create free account
hub / github.com/awsdocs/aws-doc-sdk-examples / stub_delete_object

Method stub_delete_object

python/test_tools/s3_stubber.py:266–275  ·  view source on GitHub ↗
(
        self, bucket_name, object_key, obj_version_id=None, error_code=None
    )

Source from the content-addressed store, hash-verified

264 )
265
266 def stub_delete_object(
267 self, bucket_name, object_key, obj_version_id=None, error_code=None
268 ):
269 expected_params = {"Bucket": bucket_name, "Key": object_key}
270 if obj_version_id:
271 expected_params["VersionId"] = obj_version_id
272 response = {}
273 self._stub_bifurcator(
274 "delete_object", expected_params, response, error_code=error_code
275 )
276
277 def stub_head_object(
278 self,

Callers 5

test_deleteFunction · 0.80
test_rollback_objectFunction · 0.80
test_revise_stanzaFunction · 0.80

Calls 1

_stub_bifurcatorMethod · 0.80

Tested by 5

test_deleteFunction · 0.64
test_rollback_objectFunction · 0.64
test_revise_stanzaFunction · 0.64