mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-24 22:45:44 +00:00
fixed txlist tests
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
This commit is contained in:
parent
9b476d8ea8
commit
42c7d53782
@ -38,12 +38,12 @@ def txlist(b, user_pk, user2_pk, user_sk, user2_sk):
|
|||||||
|
|
||||||
@pytest.mark.bdb
|
@pytest.mark.bdb
|
||||||
def test_get_txlist_by_asset(b, txlist):
|
def test_get_txlist_by_asset(b, txlist):
|
||||||
res = b.get_transactions_filtered(txlist.create1.id)
|
res = b.get_transactions_filtered([txlist.create1.id])
|
||||||
assert sorted(set(tx.id for tx in res)) == sorted(
|
assert sorted(set(tx.id for tx in res)) == sorted(
|
||||||
set([txlist.transfer1.id, txlist.create1.id]))
|
set([txlist.transfer1.id, txlist.create1.id]))
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.bdb
|
@pytest.mark.bdb
|
||||||
def test_get_txlist_by_operation(b, txlist):
|
def test_get_txlist_by_operation(b, txlist):
|
||||||
res = b.get_transactions_filtered(txlist.create1.id, operation='CREATE')
|
res = b.get_transactions_filtered([txlist.create1.id], operation='CREATE')
|
||||||
assert set(tx.id for tx in res) == {txlist.create1.id}
|
assert set(tx.id for tx in res) == {txlist.create1.id}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user