mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
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():
|
def _run_init():
|
||||||
b = bigchaindb.Bigchain()
|
bdb = bigchaindb.Bigchain()
|
||||||
|
|
||||||
schema.init_database(connection=b.connection)
|
schema.init_database(connection=bdb.connection)
|
||||||
|
|
||||||
b.create_genesis_block()
|
|
||||||
logger.info('Genesis block created.')
|
|
||||||
|
|
||||||
|
|
||||||
@configure_bigchaindb
|
@configure_bigchaindb
|
||||||
|
|||||||
@ -99,7 +99,6 @@ def test__run_init(mocker):
|
|||||||
bigchain_mock.assert_called_once_with()
|
bigchain_mock.assert_called_once_with()
|
||||||
init_db_mock.assert_called_once_with(
|
init_db_mock.assert_called_once_with(
|
||||||
connection=bigchain_mock.return_value.connection)
|
connection=bigchain_mock.return_value.connection)
|
||||||
bigchain_mock.return_value.create_genesis_block.assert_called_once_with()
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.tendermint
|
@pytest.mark.tendermint
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user