fixed txlist tests

Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
This commit is contained in:
Lorenz Herzberger 2022-04-14 10:38:54 +02:00
parent 9b476d8ea8
commit 42c7d53782
No known key found for this signature in database
GPG Key ID: FA5EE906EB55316A

View File

@ -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}