Work around python2 unicode exception str() issues
This commit is contained in:
parent
d74f9e47c8
commit
9a54cea4f1
2 changed files with 16 additions and 16 deletions
|
|
@ -50,7 +50,7 @@ def test_get_secret_that_does_not_exist():
|
|||
"X-Amz-Target": "secretsmanager.GetSecretValue"},
|
||||
)
|
||||
json_data = json.loads(get_secret.data.decode("utf-8"))
|
||||
assert json_data['message'] == "Secrets Manager can’t find the specified secret."
|
||||
assert json_data['message'] == u"Secrets Manager can’t find the specified secret."
|
||||
assert json_data['__type'] == 'ResourceNotFoundException'
|
||||
|
||||
@mock_secretsmanager
|
||||
|
|
@ -71,7 +71,7 @@ def test_get_secret_that_does_not_match():
|
|||
"X-Amz-Target": "secretsmanager.GetSecretValue"},
|
||||
)
|
||||
json_data = json.loads(get_secret.data.decode("utf-8"))
|
||||
assert json_data['message'] == "Secrets Manager can’t find the specified secret."
|
||||
assert json_data['message'] == u"Secrets Manager can’t find the specified secret."
|
||||
assert json_data['__type'] == 'ResourceNotFoundException'
|
||||
|
||||
@mock_secretsmanager
|
||||
|
|
@ -91,7 +91,7 @@ def test_get_secret_that_has_no_value():
|
|||
)
|
||||
|
||||
json_data = json.loads(get_secret.data.decode("utf-8"))
|
||||
assert json_data['message'] == "Secrets Manager can’t find the specified secret value for staging label: AWSCURRENT"
|
||||
assert json_data['message'] == u"Secrets Manager can’t find the specified secret value for staging label: AWSCURRENT"
|
||||
assert json_data['__type'] == 'ResourceNotFoundException'
|
||||
|
||||
@mock_secretsmanager
|
||||
|
|
@ -179,7 +179,7 @@ def test_describe_secret_that_does_not_exist():
|
|||
)
|
||||
|
||||
json_data = json.loads(describe_secret.data.decode("utf-8"))
|
||||
assert json_data['message'] == "Secrets Manager can’t find the specified secret."
|
||||
assert json_data['message'] == u"Secrets Manager can’t find the specified secret."
|
||||
assert json_data['__type'] == 'ResourceNotFoundException'
|
||||
|
||||
@mock_secretsmanager
|
||||
|
|
@ -203,7 +203,7 @@ def test_describe_secret_that_does_not_match():
|
|||
)
|
||||
|
||||
json_data = json.loads(describe_secret.data.decode("utf-8"))
|
||||
assert json_data['message'] == "Secrets Manager can’t find the specified secret."
|
||||
assert json_data['message'] == u"Secrets Manager can’t find the specified secret."
|
||||
assert json_data['__type'] == 'ResourceNotFoundException'
|
||||
|
||||
@mock_secretsmanager
|
||||
|
|
@ -304,7 +304,7 @@ def test_rotate_secret_that_does_not_exist():
|
|||
)
|
||||
|
||||
json_data = json.loads(rotate_secret.data.decode("utf-8"))
|
||||
assert json_data['message'] == "Secrets Manager can’t find the specified secret."
|
||||
assert json_data['message'] == u"Secrets Manager can’t find the specified secret."
|
||||
assert json_data['__type'] == 'ResourceNotFoundException'
|
||||
|
||||
@mock_secretsmanager
|
||||
|
|
@ -328,7 +328,7 @@ def test_rotate_secret_that_does_not_match():
|
|||
)
|
||||
|
||||
json_data = json.loads(rotate_secret.data.decode("utf-8"))
|
||||
assert json_data['message'] == "Secrets Manager can’t find the specified secret."
|
||||
assert json_data['message'] == u"Secrets Manager can’t find the specified secret."
|
||||
assert json_data['__type'] == 'ResourceNotFoundException'
|
||||
|
||||
@mock_secretsmanager
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue