Put back some strings with wrapped single quotes

just to double check that flake8-quotes does indeed tolerate it
This commit is contained in:
Sylvain Bellemare 2017-01-24 10:22:32 +01:00
parent bd048a3115
commit fe5d966dca
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ class Input(object):
fulfillment = Fulfillment.from_uri(data['fulfillment'])
except ValueError:
# TODO FOR CC: Throw an `InvalidSignature` error in this case.
raise InvalidSignature('Fulfillment URI couldn\'t been parsed')
raise InvalidSignature("Fulfillment URI couldn't been parsed")
except TypeError:
# NOTE: See comment about this special case in
# `Input.to_dict`

View File

@ -97,7 +97,7 @@ def test_post_create_transaction_with_invalid_schema(client, caplog):
res = client.post(TX_ENDPOINT, data=json.dumps(tx))
expected_status_code = 400
expected_error_message = (
'Invalid transaction schema: \'version\' is a required property')
"Invalid transaction schema: 'version' is a required property")
assert res.status_code == expected_status_code
assert res.json['message'] == expected_error_message
assert caplog.records[0].args['status'] == expected_status_code