mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Problem: Need an integration test for run_election_new_migration
Solution: Added an `abci` test for this method
This commit is contained in:
parent
3f81e7eeaa
commit
af36843788
@ -343,6 +343,20 @@ def test_election_new_upsert_validator_without_tendermint(caplog, b, priv_valida
|
|||||||
assert b.get_transaction(election_id)
|
assert b.get_transaction(election_id)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.abci
|
||||||
|
def test_election_new_migration_with_tendermint(b, priv_validator_path, user_sk, validators):
|
||||||
|
from bigchaindb.commands.bigchaindb import run_election_new_migration
|
||||||
|
|
||||||
|
new_args = Namespace(action='new',
|
||||||
|
election_type='migration',
|
||||||
|
sk=priv_validator_path,
|
||||||
|
config={})
|
||||||
|
|
||||||
|
election_id = run_election_new_migration(new_args, b)
|
||||||
|
|
||||||
|
assert b.get_transaction(election_id)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.bdb
|
@pytest.mark.bdb
|
||||||
def test_election_new_migration_without_tendermint(caplog, b, priv_validator_path, user_sk):
|
def test_election_new_migration_without_tendermint(caplog, b, priv_validator_path, user_sk):
|
||||||
from bigchaindb.commands.bigchaindb import run_election_new_migration
|
from bigchaindb.commands.bigchaindb import run_election_new_migration
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user