Added references to moto.iam.models.ACCOUNT_ID instead of hardcoded id
This commit is contained in:
parent
6969c887e4
commit
b83a750630
54 changed files with 326 additions and 295 deletions
|
|
@ -4,6 +4,7 @@ import boto3
|
|||
from botocore.exceptions import ClientError
|
||||
from moto import mock_sns
|
||||
import sure # noqa
|
||||
from moto.iam.models import ACCOUNT_ID
|
||||
|
||||
|
||||
@mock_sns
|
||||
|
|
@ -19,7 +20,7 @@ def test_create_platform_application():
|
|||
)
|
||||
application_arn = response["PlatformApplicationArn"]
|
||||
application_arn.should.equal(
|
||||
"arn:aws:sns:us-east-1:123456789012:app/APNS/my-application"
|
||||
"arn:aws:sns:us-east-1:{}:app/APNS/my-application".format(ACCOUNT_ID)
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -131,7 +132,7 @@ def test_create_platform_endpoint():
|
|||
|
||||
endpoint_arn = endpoint["EndpointArn"]
|
||||
endpoint_arn.should.contain(
|
||||
"arn:aws:sns:us-east-1:123456789012:endpoint/APNS/my-application/"
|
||||
"arn:aws:sns:us-east-1:{}:endpoint/APNS/my-application/".format(ACCOUNT_ID)
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue