1
0
mirror of https://github.com/bigchaindb/bigchaindb.git synced 2024-07-01 06:02:15 +02:00

Problem: fixture with no asset fails

Solution: instantiate the transaction with a dummy asset
This commit is contained in:
Sylvain Bellemare 2018-02-08 15:49:06 +01:00
parent 967d5727e2
commit c85c664215

View File

@ -342,7 +342,7 @@ def tb():
@pytest.fixture
def create_tx(b, user_pk):
from bigchaindb.models import Transaction
return Transaction.create([b.me], [([user_pk], 1)])
return Transaction.create([b.me], [([user_pk], 1)], asset={'name': 'xyz'})
@pytest.fixture