From cbd7160be4a1e6b1b4766a3697247ccf44311b1c Mon Sep 17 00:00:00 2001 From: PhilipWafula Date: Wed, 20 Oct 2021 15:51:27 +0300 Subject: [PATCH] Loads chainspec from chain.ini --- apps/cic-ussd/tests/fixtures/config.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/cic-ussd/tests/fixtures/config.py b/apps/cic-ussd/tests/fixtures/config.py index ed33dd50..eab100d8 100644 --- a/apps/cic-ussd/tests/fixtures/config.py +++ b/apps/cic-ussd/tests/fixtures/config.py @@ -41,11 +41,7 @@ def init_state_machine(load_config): @pytest.fixture(scope='function') def load_chain_spec(load_config): - chain_spec = ChainSpec( - common_name=load_config.get('CIC_COMMON_NAME'), - engine=load_config.get('CIC_ENGINE'), - network_id=load_config.get('CIC_NETWORK_ID') - ) + chain_spec = ChainSpec.from_chain_str(load_config.get('CHAIN_SPEC')) Chain.spec = chain_spec