Light, fluffy, and always free - The AWS Local Emulator alternative
test(s3): assert NoSuchTagSet after DeleteBucketTagging in the Python compat suite (#4687)
Niels Kootstra005ecb3b763f
diff --git a/compatibility-tests/sdk-test-python/tests/test_s3.py b/compatibility-tests/sdk-test-python/tests/test_s3.pyindex 1b2d4360c3..562ff3527a 100644--- a/compatibility-tests/sdk-test-python/tests/test_s3.py+++ b/compatibility-tests/sdk-test-python/tests/test_s3.py@@ -313,12 +313,9 @@ class TestS3BucketTagging:s3_client.delete_bucket_tagging(Bucket=test_bucket)- # Either empty tags or NoSuchTagSet error- try:- response = s3_client.get_bucket_tagging(Bucket=test_bucket)- assert len(response.get("TagSet", [])) == 0- except ClientError:- pass # NoSuchTagSet is also acceptable+ with pytest.raises(ClientError) as exc_info:+ s3_client.get_bucket_tagging(Bucket=test_bucket)+ assert exc_info.value.response["Error"]["Code"] == "NoSuchTagSet"class TestS3LargeObject: