mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Removed pytest-catchlog from setup.py & fixed one failing test
This commit is contained in:
parent
cb268a3832
commit
7a491bb781
1
setup.py
1
setup.py
@ -52,7 +52,6 @@ tests_require = [
|
||||
'hypothesis-regex',
|
||||
'pylint',
|
||||
'pytest>=3.0.0',
|
||||
'pytest-catchlog>=1.2.2',
|
||||
'pytest-cov>=2.2.1',
|
||||
'pytest-mock',
|
||||
'pytest-xdist',
|
||||
|
@ -89,13 +89,14 @@ def test_get_owned_ids(signed_create_tx, user_pk):
|
||||
assert txns[0] == signed_create_tx.to_dict()
|
||||
|
||||
|
||||
def test_get_spending_transactions(user_pk):
|
||||
def test_get_spending_transactions(user_pk, user_sk):
|
||||
from bigchaindb.backend import connect, query
|
||||
from bigchaindb.models import Transaction
|
||||
conn = connect()
|
||||
|
||||
out = [([user_pk], 1)]
|
||||
tx1 = Transaction.create([user_pk], out * 3)
|
||||
tx1.sign([user_sk])
|
||||
inputs = tx1.to_inputs()
|
||||
tx2 = Transaction.transfer([inputs[0]], out, tx1.id)
|
||||
tx3 = Transaction.transfer([inputs[1]], out, tx1.id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user