From a68a4352b833cc3b56e2f77ae73573f03f1d294e Mon Sep 17 00:00:00 2001 From: Sylvain Bellemare Date: Mon, 15 Feb 2016 11:25:56 +0100 Subject: [PATCH] Import locally --- tests/utils/test_config_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/utils/test_config_utils.py b/tests/utils/test_config_utils.py index adbdbe37..54c425b4 100644 --- a/tests/utils/test_config_utils.py +++ b/tests/utils/test_config_utils.py @@ -3,7 +3,6 @@ import copy import pytest import bigchaindb -from bigchaindb import config_utils ORIGINAL_CONFIG = copy.deepcopy(bigchaindb.config) @@ -15,6 +14,7 @@ def clean_config(): def test_bigchain_instance_is_initialized_when_conf_provided(): + from bigchaindb import config_utils assert 'CONFIGURED' not in bigchaindb.config config_utils.dict_config({'keypair': {'public': 'a', 'private': 'b'}}) @@ -27,6 +27,7 @@ def test_bigchain_instance_is_initialized_when_conf_provided(): def test_bigchain_instance_raises_when_not_configured(monkeypatch): + from bigchaindb import config_utils assert 'CONFIGURED' not in bigchaindb.config # We need to disable ``bigchaindb.config_utils.autoconfigure`` to avoid reading @@ -35,4 +36,3 @@ def test_bigchain_instance_raises_when_not_configured(monkeypatch): with pytest.raises(bigchaindb.core.KeypairNotFoundException): bigchaindb.Bigchain() -