From 03ba6391c61d44676ded830202f74fdc0c21dfeb Mon Sep 17 00:00:00 2001 From: Rodolphe Marques Date: Wed, 14 Jun 2017 10:38:23 +0200 Subject: [PATCH] updated tests for the events api --- tests/web/test_websocket_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/web/test_websocket_server.py b/tests/web/test_websocket_server.py index f25e183f..d071f9e7 100644 --- a/tests/web/test_websocket_server.py +++ b/tests/web/test_websocket_server.py @@ -132,7 +132,7 @@ def test_websocket_block_event(b, _block, test_client, loop): for tx in block['block']['transactions']: result = yield from ws.receive() json_result = json.loads(result.data) - assert json_result['tx_id'] == tx['id'] + assert json_result['transaction_id'] == tx['id'] # Since the transactions are all CREATEs, asset id == transaction id assert json_result['asset_id'] == tx['id'] assert json_result['block_id'] == block['id'] @@ -184,4 +184,4 @@ def test_integration_from_webapi_to_websocket(monkeypatch, client, loop): result = loop.run_until_complete(ws.receive()) json_result = json.loads(result.data) - assert json_result['tx_id'] == tx.id + assert json_result['transaction_id'] == tx.id