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:
parent
967d5727e2
commit
c85c664215
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user