bloody flake8
This commit is contained in:
parent
cc1422d448
commit
ecb2c4dca3
@ -1172,9 +1172,9 @@ def test_get_fee(default_conf, mocker):
|
||||
ccxt_exceptionhandlers(mocker, default_conf, api_mock,
|
||||
'get_fee', 'calculate_fee')
|
||||
|
||||
|
||||
def test_stoploss_limit_available_only_for_binance(default_conf, mocker):
|
||||
api_mock = MagicMock()
|
||||
exchange = get_patched_exchange(mocker, default_conf, api_mock)
|
||||
with pytest.raises(NotImplementedError):
|
||||
exchange.stoploss_limit('BTC/ETH', 1, 0.8, 0.79)
|
||||
|
||||
|
@ -885,7 +885,7 @@ def test_execute_buy_with_stoploss_on_exchange(mocker, default_conf,
|
||||
fee, markets, limit_buy_order) -> None:
|
||||
default_conf['exchange']['name'] = 'binance'
|
||||
patch_RPCManager(mocker)
|
||||
patch_exchange(mocker)
|
||||
patch_exchange(mocker, id='binance')
|
||||
freqtrade = FreqtradeBot(default_conf)
|
||||
freqtrade.strategy.stoploss_on_exchange = True
|
||||
freqtrade.strategy.stoploss = -0.05
|
||||
|
Loading…
Reference in New Issue
Block a user