bloody flake8

This commit is contained in:
misagh 2018-11-22 19:38:20 +01:00
parent cc1422d448
commit ecb2c4dca3
2 changed files with 2 additions and 2 deletions

View File

@ -1172,9 +1172,9 @@ def test_get_fee(default_conf, mocker):
ccxt_exceptionhandlers(mocker, default_conf, api_mock, ccxt_exceptionhandlers(mocker, default_conf, api_mock,
'get_fee', 'calculate_fee') 'get_fee', 'calculate_fee')
def test_stoploss_limit_available_only_for_binance(default_conf, mocker): def test_stoploss_limit_available_only_for_binance(default_conf, mocker):
api_mock = MagicMock() api_mock = MagicMock()
exchange = get_patched_exchange(mocker, default_conf, api_mock) exchange = get_patched_exchange(mocker, default_conf, api_mock)
with pytest.raises(NotImplementedError): with pytest.raises(NotImplementedError):
exchange.stoploss_limit('BTC/ETH', 1, 0.8, 0.79) exchange.stoploss_limit('BTC/ETH', 1, 0.8, 0.79)

View File

@ -885,7 +885,7 @@ def test_execute_buy_with_stoploss_on_exchange(mocker, default_conf,
fee, markets, limit_buy_order) -> None: fee, markets, limit_buy_order) -> None:
default_conf['exchange']['name'] = 'binance' default_conf['exchange']['name'] = 'binance'
patch_RPCManager(mocker) patch_RPCManager(mocker)
patch_exchange(mocker) patch_exchange(mocker, id='binance')
freqtrade = FreqtradeBot(default_conf) freqtrade = FreqtradeBot(default_conf)
freqtrade.strategy.stoploss_on_exchange = True freqtrade.strategy.stoploss_on_exchange = True
freqtrade.strategy.stoploss = -0.05 freqtrade.strategy.stoploss = -0.05