mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Problem: Outdated call to bigchaindb.store_transaction() in one of the tests
Solution: Refactored the test to use `bigchaindb.store_bulk_transactions()`
This commit is contained in:
parent
59f6d878fc
commit
9cae187ede
@ -434,7 +434,7 @@ def test_upsert_validator_approve_without_tendermint(b, priv_validator_path, new
|
|||||||
from argparse import Namespace
|
from argparse import Namespace
|
||||||
|
|
||||||
def mock_write(tx, mode):
|
def mock_write(tx, mode):
|
||||||
b.store_transaction(tx)
|
b.store_bulk_transactions([tx])
|
||||||
return (202, '')
|
return (202, '')
|
||||||
|
|
||||||
# patch the validator set. We now have one validator with power 10
|
# patch the validator set. We now have one validator with power 10
|
||||||
@ -451,7 +451,7 @@ def test_upsert_validator_approve_without_tendermint(b, priv_validator_path, new
|
|||||||
|
|
||||||
# patch in an election with a vote issued to the user
|
# patch in an election with a vote issued to the user
|
||||||
election_id = valid_election.id
|
election_id = valid_election.id
|
||||||
b.store_transaction(valid_election)
|
b.store_bulk_transactions([valid_election])
|
||||||
|
|
||||||
# call run_upsert_validator_approve with args that point to the election
|
# call run_upsert_validator_approve with args that point to the election
|
||||||
args = Namespace(action='approve',
|
args = Namespace(action='approve',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user