From ecb2c4dca384d08cc9ebf6a112ebb98cefe0b795 Mon Sep 17 00:00:00 2001 From: misagh Date: Thu, 22 Nov 2018 19:38:20 +0100 Subject: [PATCH] bloody flake8 --- freqtrade/tests/exchange/test_exchange.py | 2 +- freqtrade/tests/test_freqtradebot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/tests/exchange/test_exchange.py b/freqtrade/tests/exchange/test_exchange.py index 5cbe5b42e..9dbc50a66 100644 --- a/freqtrade/tests/exchange/test_exchange.py +++ b/freqtrade/tests/exchange/test_exchange.py @@ -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) - diff --git a/freqtrade/tests/test_freqtradebot.py b/freqtrade/tests/test_freqtradebot.py index 03bc68025..571c89bc0 100644 --- a/freqtrade/tests/test_freqtradebot.py +++ b/freqtrade/tests/test_freqtradebot.py @@ -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