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:
z-bowen 2018-08-23 11:42:59 +02:00
parent 59f6d878fc
commit 9cae187ede

View File

@ -434,7 +434,7 @@ def test_upsert_validator_approve_without_tendermint(b, priv_validator_path, new
from argparse import Namespace
def mock_write(tx, mode):
b.store_transaction(tx)
b.store_bulk_transactions([tx])
return (202, '')
# 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
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
args = Namespace(action='approve',