Fixes for automated tests linting.
This commit is contained in:
parent
433997629f
commit
5df0f1befc
@ -77,7 +77,6 @@ class CognitoIdentityBackend(BaseBackend):
|
|||||||
|
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
||||||
def get_id(self):
|
def get_id(self):
|
||||||
identity_id = {'IdentityId': get_random_identity_id(self.region)}
|
identity_id = {'IdentityId': get_random_identity_id(self.region)}
|
||||||
return json.dumps(identity_id)
|
return json.dumps(identity_id)
|
||||||
@ -112,6 +111,7 @@ class CognitoIdentityBackend(BaseBackend):
|
|||||||
"IdentityId": identity_id
|
"IdentityId": identity_id
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
cognitoidentity_backends = {}
|
cognitoidentity_backends = {}
|
||||||
for region in boto.cognito.identity.regions():
|
for region in boto.cognito.identity.regions():
|
||||||
cognitoidentity_backends[region.name] = CognitoIdentityBackend(region.name)
|
cognitoidentity_backends[region.name] = CognitoIdentityBackend(region.name)
|
||||||
|
@ -45,4 +45,3 @@ class CognitoIdentityResponse(BaseResponse):
|
|||||||
|
|
||||||
def get_open_id_token_for_developer_identity(self):
|
def get_open_id_token_for_developer_identity(self):
|
||||||
return cognitoidentity_backends[self.region].get_open_id_token_for_developer_identity(self._get_param('IdentityId'))
|
return cognitoidentity_backends[self.region].get_open_id_token_for_developer_identity(self._get_param('IdentityId'))
|
||||||
|
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
import collections
|
|
||||||
import six
|
|
||||||
from moto.core.utils import get_random_hex
|
from moto.core.utils import get_random_hex
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user