mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
updated tests for the events api
This commit is contained in:
parent
f1a9650679
commit
03ba6391c6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user