Run black on moto & test directories.
This commit is contained in:
parent
c820395dbf
commit
96e5b1993d
507 changed files with 52541 additions and 47814 deletions
|
|
@ -3,16 +3,16 @@ import sure # noqa
|
|||
|
||||
import moto.server as server
|
||||
|
||||
'''
|
||||
"""
|
||||
Test the different server responses
|
||||
'''
|
||||
"""
|
||||
|
||||
|
||||
def test_sts_get_session_token():
|
||||
backend = server.create_backend_app("sts")
|
||||
test_client = backend.test_client()
|
||||
|
||||
res = test_client.get('/?Action=GetSessionToken')
|
||||
res = test_client.get("/?Action=GetSessionToken")
|
||||
res.status_code.should.equal(200)
|
||||
res.data.should.contain(b"SessionToken")
|
||||
res.data.should.contain(b"AccessKeyId")
|
||||
|
|
@ -22,7 +22,7 @@ def test_sts_get_federation_token():
|
|||
backend = server.create_backend_app("sts")
|
||||
test_client = backend.test_client()
|
||||
|
||||
res = test_client.get('/?Action=GetFederationToken&Name=Bob')
|
||||
res = test_client.get("/?Action=GetFederationToken&Name=Bob")
|
||||
res.status_code.should.equal(200)
|
||||
res.data.should.contain(b"SessionToken")
|
||||
res.data.should.contain(b"AccessKeyId")
|
||||
|
|
@ -32,7 +32,7 @@ def test_sts_get_caller_identity():
|
|||
backend = server.create_backend_app("sts")
|
||||
test_client = backend.test_client()
|
||||
|
||||
res = test_client.get('/?Action=GetCallerIdentity')
|
||||
res = test_client.get("/?Action=GetCallerIdentity")
|
||||
res.status_code.should.equal(200)
|
||||
res.data.should.contain(b"Arn")
|
||||
res.data.should.contain(b"UserId")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue