mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Fix post_mock in web/test_transactions.py.
This commit is contained in:
parent
9c5ba722f9
commit
4b6d30f20d
@ -416,6 +416,12 @@ def test_transactions_get_list_bad(client):
|
||||
def test_post_transaction_valid_modes(mock_post, client, mode):
|
||||
from bigchaindb.models import Transaction
|
||||
from bigchaindb.common.crypto import generate_key_pair
|
||||
|
||||
def _mock_post(*args, **kwargs):
|
||||
return Mock(json=Mock(return_value={'result': {'code': 0}}))
|
||||
|
||||
mock_post.side_effect = _mock_post
|
||||
|
||||
alice = generate_key_pair()
|
||||
tx = Transaction.create([alice.public_key],
|
||||
[([alice.public_key], 1)],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user