set capturing level

This commit is contained in:
Janne Sinivirta
2018-01-31 19:37:38 +02:00
parent 8ba08af539
commit 45975c9677
7 changed files with 24 additions and 1 deletions

View File

@@ -24,6 +24,7 @@ def maybe_init_api(conf, mocker):
def test_init(default_conf, mocker, caplog):
caplog.set_level(logging.INFO)
maybe_init_api(default_conf, mocker)
assert ('freqtrade.exchange',
logging.INFO,
@@ -71,6 +72,7 @@ def test_validate_pairs_not_compatible(default_conf, mocker):
def test_validate_pairs_exception(default_conf, mocker, caplog):
caplog.set_level(logging.INFO)
api_mock = MagicMock()
api_mock.get_markets = MagicMock(side_effect=RequestException())
mocker.patch('freqtrade.exchange._API', api_mock)