Only log at start of the test cases
This commit is contained in:
parent
3dd04b27de
commit
ea5f64bfea
1 changed files with 6 additions and 1 deletions
|
@ -413,6 +413,10 @@ def crypt_bitcoin_lib(request, monkeypatch):
|
||||||
CryptBitcoin.loadLib(request.param)
|
CryptBitcoin.loadLib(request.param)
|
||||||
return CryptBitcoin
|
return CryptBitcoin
|
||||||
|
|
||||||
|
@pytest.fixture(scope='function', autouse=True)
|
||||||
|
def logCaseStart(request):
|
||||||
|
logging.debug("---- Start test case: %s ----" % request._pyfuncitem)
|
||||||
|
yield None # Wait until all test done
|
||||||
|
|
||||||
|
|
||||||
def workaroundPytestLogError():
|
def workaroundPytestLogError():
|
||||||
|
@ -449,4 +453,5 @@ workaroundPytestLogError()
|
||||||
def logCaseStart(request):
|
def logCaseStart(request):
|
||||||
logging.debug("---- Start test case: %s ----" % request._pyfuncitem)
|
logging.debug("---- Start test case: %s ----" % request._pyfuncitem)
|
||||||
yield None # Wait until all test done
|
yield None # Wait until all test done
|
||||||
logging.debug("---- End test case: %s ----" % request._pyfuncitem)
|
logging.getLogger('').setLevel(logging.getLevelName(logging.CRITICAL))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue