File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed
images/applications/botocore
tests/test/amazon/botocore Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -381,9 +381,7 @@ def _handle_sns_request(self) -> None:
381381 "before-call.sns.GetTopicAttributes" ,
382382 lambda ** kwargs : inject_500_error ("GetTopicAttributes" , ** kwargs ),
383383 )
384- fault_client .get_topic_attributes (
385- TopicArn = "arn:aws:sns:us-west-2:000000000000:invalid-topic"
386- )
384+ fault_client .get_topic_attributes (TopicArn = "arn:aws:sns:us-west-2:000000000000:invalid-topic" )
387385 except Exception as exception :
388386 print ("Expected exception occurred" , exception )
389387 elif self .in_path ("gettopicattributes/test-topic" ):
@@ -583,9 +581,7 @@ def prepare_aws_server() -> None:
583581 )
584582
585583 # Set up SNS so tests can access a topic.
586- sns_client : BaseClient = boto3 .client (
587- "sns" , endpoint_url = _AWS_SDK_ENDPOINT , region_name = _AWS_REGION
588- )
584+ sns_client : BaseClient = boto3 .client ("sns" , endpoint_url = _AWS_SDK_ENDPOINT , region_name = _AWS_REGION )
589585 create_topic_response = sns_client .create_topic (Name = "test-topic" )
590586 print ("Created topic successfully:" , create_topic_response )
591587
Original file line number Diff line number Diff line change @@ -766,15 +766,13 @@ def test_sns_get_topic_attributes(self):
766766 remote_resource_type = "AWS::SNS::Topic" ,
767767 remote_resource_identifier = "test-topic" ,
768768 cloudformation_primary_identifier = "arn:aws:sns:us-west-2:000000000000:test-topic" ,
769- request_specific_attributes = {
770- _AWS_SNS_TOPIC_ARN : "arn:aws:sns:us-west-2:000000000000:test-topic"
771- },
772- span_name = "SNS.GetTopicAttributes"
769+ request_specific_attributes = {_AWS_SNS_TOPIC_ARN : "arn:aws:sns:us-west-2:000000000000:test-topic" },
770+ span_name = "SNS.GetTopicAttributes" ,
773771 )
774772
775- # TODO: Add error case for sns - our test setup is not setting the http status code properly
773+ # TODO: Add error case for sns - our test setup is not setting the http status code properly
776774 # for this resource
777-
775+
778776 def test_sns_fault (self ):
779777 self .do_test_requests (
780778 "sns/fault" ,
You can’t perform that action at this time.
0 commit comments