From fe5d966dcad8d983875edb1c5734fde9ba5c7f5d Mon Sep 17 00:00:00 2001 From: Sylvain Bellemare Date: Tue, 24 Jan 2017 10:22:32 +0100 Subject: [PATCH] Put back some strings with wrapped single quotes just to double check that flake8-quotes does indeed tolerate it --- bigchaindb/common/transaction.py | 2 +- tests/web/test_transactions.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bigchaindb/common/transaction.py b/bigchaindb/common/transaction.py index e88ecabe..bda62663 100644 --- a/bigchaindb/common/transaction.py +++ b/bigchaindb/common/transaction.py @@ -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` diff --git a/tests/web/test_transactions.py b/tests/web/test_transactions.py index bc951739..17f976e6 100644 --- a/tests/web/test_transactions.py +++ b/tests/web/test_transactions.py @@ -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