From 9cae187ede33a51205665204fd1294b4f7ea42fe Mon Sep 17 00:00:00 2001 From: z-bowen Date: Thu, 23 Aug 2018 11:42:59 +0200 Subject: [PATCH] Problem: Outdated call to `bigchaindb.store_transaction()` in one of the tests Solution: Refactored the test to use `bigchaindb.store_bulk_transactions()` --- tests/commands/test_commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/commands/test_commands.py b/tests/commands/test_commands.py index 13d35ce7..d58b6ea9 100644 --- a/tests/commands/test_commands.py +++ b/tests/commands/test_commands.py @@ -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',