Cognito - Dont run test in ServerMode
This commit is contained in:
parent
655b92a2a4
commit
f27e29e04d
@ -14,7 +14,7 @@ from botocore.exceptions import ClientError
|
||||
from jose import jws, jwk, jwt
|
||||
from nose.tools import assert_raises
|
||||
|
||||
from moto import mock_cognitoidp
|
||||
from moto import mock_cognitoidp, settings
|
||||
from moto.core import ACCOUNT_ID
|
||||
|
||||
|
||||
@ -1312,6 +1312,10 @@ def test_admin_update_user_attributes():
|
||||
val.should.equal("Jane")
|
||||
|
||||
|
||||
# Test will retrieve public key from cognito.amazonaws.com/.well-known/jwks.json,
|
||||
# which isnt mocked in ServerMode
|
||||
if not settings.TEST_SERVER_MODE:
|
||||
|
||||
@mock_cognitoidp
|
||||
def test_idtoken_contains_kid_header():
|
||||
# https://github.com/spulec/moto/issues/3078
|
||||
@ -1335,7 +1339,9 @@ def test_idtoken_contains_kid_header():
|
||||
username = str(uuid.uuid4())
|
||||
temporary_password = "1TemporaryP@ssword"
|
||||
cognito.admin_create_user(
|
||||
UserPoolId=user_pool_id, Username=username, TemporaryPassword=temporary_password
|
||||
UserPoolId=user_pool_id,
|
||||
Username=username,
|
||||
TemporaryPassword=temporary_password,
|
||||
)
|
||||
result = cognito.admin_initiate_auth(
|
||||
UserPoolId=user_pool_id,
|
||||
|
Loading…
Reference in New Issue
Block a user