mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Make it harder for issue #27 to go unnoticed
This commit is contained in:
parent
a68a4352b8
commit
53aff999aa
@ -7,7 +7,7 @@ import rapidjson
|
|||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
import bigchaindb
|
import bigchaindb
|
||||||
import bigchaindb.config_utils
|
from bigchaindb import config_utils
|
||||||
from bigchaindb import exceptions
|
from bigchaindb import exceptions
|
||||||
from bigchaindb.crypto import hash_data, PublicKey, PrivateKey, generate_key_pair
|
from bigchaindb.crypto import hash_data, PublicKey, PrivateKey, generate_key_pair
|
||||||
|
|
||||||
@ -46,7 +46,7 @@ class Bigchain(object):
|
|||||||
keyring (list[str]): list of base58 encoded public keys of the federation nodes.
|
keyring (list[str]): list of base58 encoded public keys of the federation nodes.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
bigchaindb.config_utils.autoconfigure()
|
config_utils.autoconfigure()
|
||||||
self.host = host or bigchaindb.config['database']['host']
|
self.host = host or bigchaindb.config['database']['host']
|
||||||
self.port = port or bigchaindb.config['database']['port']
|
self.port = port or bigchaindb.config['database']['port']
|
||||||
self.dbname = dbname or bigchaindb.config['database']['name']
|
self.dbname = dbname or bigchaindb.config['database']['name']
|
||||||
|
@ -26,8 +26,8 @@ USER_PUBLIC_KEY = 'r3cEu8GNoz8rYpNJ61k7GqfR8VEvdUbtyHce8u1kaYwh'
|
|||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def restore_config(request, node_config):
|
def restore_config(request, node_config):
|
||||||
import bigchaindb.config_utils
|
from bigchaindb import config_utils
|
||||||
bigchaindb.config_utils.dict_config(node_config)
|
config_utils.dict_config(node_config)
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
|
@ -18,8 +18,8 @@ NOOP = None
|
|||||||
|
|
||||||
@pytest.fixture(autouse=True)
|
@pytest.fixture(autouse=True)
|
||||||
def restore_config(request, node_config):
|
def restore_config(request, node_config):
|
||||||
import bigchaindb.config_utils
|
from bigchaindb import config_utils
|
||||||
bigchaindb.config_utils.dict_config(node_config)
|
config_utils.dict_config(node_config)
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope='module', autouse=True)
|
@pytest.fixture(scope='module', autouse=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user