From 6d80c038773252d9ae065adc4c729983844f5dfc Mon Sep 17 00:00:00 2001 From: misagh Date: Thu, 8 Nov 2018 00:28:20 +0100 Subject: [PATCH] removing raise KeyError in test --- freqtrade/tests/test_freqtradebot.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/freqtrade/tests/test_freqtradebot.py b/freqtrade/tests/test_freqtradebot.py index 1afb86024..9c72f9177 100644 --- a/freqtrade/tests/test_freqtradebot.py +++ b/freqtrade/tests/test_freqtradebot.py @@ -256,9 +256,7 @@ def test_edge_overrides_stake_amount(mocker, default_conf) -> None: # strategy stoploss should be ignored freqtrade.strategy.stoploss = -0.05 - with pytest.raises(KeyError): - freqtrade._get_trade_stake_amount('ETH/BTC') - + assert 'ETH/BTC' not in freqtrade.edge._cached_pairs assert freqtrade._get_trade_stake_amount('NEO/BTC') == 0.025 assert freqtrade._get_trade_stake_amount('LTC/BTC') == 0.02381