Updates tests to dissable logging based on 17e6066

This commit is contained in:
Sergi Delgado Segura
2019-10-26 14:22:21 -07:00
parent f61474216c
commit dfaec51a3b
11 changed files with 25 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
import pytest
import logging
from pisa import c_logger
from pisa.carrier import Carrier
from test.simulator.utils import sha256d
from test.simulator.transaction import TX
@@ -8,7 +8,7 @@ from test.unit.conftest import generate_blocks
from test.unit.conftest import get_random_value_hex
from pisa.rpc_errors import RPC_VERIFY_ALREADY_IN_CHAIN, RPC_DESERIALIZATION_ERROR
logging.getLogger().disabled = True
c_logger.disabled = True
# FIXME: This test do not fully cover the carrier since the simulator does not support every single error bitcoind may
# return for RPC_VERIFY_REJECTED and RPC_VERIFY_ERROR. Further development of the simulator / mocks or simulation