reverting some changes and moving step by step
Signed-off-by: Shahbaz Nazir <shahbaz@bigchaindb.com>
This commit is contained in:
parent
8c32ae798b
commit
18ab671caa
|
@ -93,12 +93,9 @@ def run_configure(args):
|
|||
|
||||
|
||||
def _run_init():
|
||||
b = bigchaindb.Bigchain()
|
||||
bdb = bigchaindb.Bigchain()
|
||||
|
||||
schema.init_database(connection=b.connection)
|
||||
|
||||
b.create_genesis_block()
|
||||
logger.info('Genesis block created.')
|
||||
schema.init_database(connection=bdb.connection)
|
||||
|
||||
|
||||
@configure_bigchaindb
|
||||
|
|
|
@ -99,7 +99,6 @@ def test__run_init(mocker):
|
|||
bigchain_mock.assert_called_once_with()
|
||||
init_db_mock.assert_called_once_with(
|
||||
connection=bigchain_mock.return_value.connection)
|
||||
bigchain_mock.return_value.create_genesis_block.assert_called_once_with()
|
||||
|
||||
|
||||
@pytest.mark.tendermint
|
||||
|
|
Loading…
Reference in New Issue