mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
duplicate asset id / fix test_get_transactions_by_asset_id
This commit is contained in:
parent
71e52ed36b
commit
d9cf4df5e6
@ -118,11 +118,8 @@ def test_get_transactions_by_asset_id(b, user_pk, user_sk):
|
|||||||
txs = b.get_transactions_by_asset_id(asset_id)
|
txs = b.get_transactions_by_asset_id(asset_id)
|
||||||
|
|
||||||
assert len(txs) == 2
|
assert len(txs) == 2
|
||||||
assert tx_create.id in [t.id for t in txs]
|
assert {tx_create.id, tx_transfer.id} == set(tx.id for tx in txs)
|
||||||
assert tx_transfer.id in [t.id for t in txs]
|
assert {asset_id} == {Transaction.get_asset_id(txs)}
|
||||||
# FIXME: can I rely on the ordering here?
|
|
||||||
assert asset_id == txs[0].id
|
|
||||||
assert asset_id == txs[1].asset['id']
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.bdb
|
@pytest.mark.bdb
|
||||||
|
Loading…
x
Reference in New Issue
Block a user