removing raise KeyError in test
This commit is contained in:
parent
e5c6499706
commit
6d80c03877
@ -256,9 +256,7 @@ def test_edge_overrides_stake_amount(mocker, default_conf) -> None:
|
|||||||
# strategy stoploss should be ignored
|
# strategy stoploss should be ignored
|
||||||
freqtrade.strategy.stoploss = -0.05
|
freqtrade.strategy.stoploss = -0.05
|
||||||
|
|
||||||
with pytest.raises(KeyError):
|
assert 'ETH/BTC' not in freqtrade.edge._cached_pairs
|
||||||
freqtrade._get_trade_stake_amount('ETH/BTC')
|
|
||||||
|
|
||||||
assert freqtrade._get_trade_stake_amount('NEO/BTC') == 0.025
|
assert freqtrade._get_trade_stake_amount('NEO/BTC') == 0.025
|
||||||
assert freqtrade._get_trade_stake_amount('LTC/BTC') == 0.02381
|
assert freqtrade._get_trade_stake_amount('LTC/BTC') == 0.02381
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user