Allow forcebuy price to be a string by converting it to float

fix #3970
This commit is contained in:
Matthias
2020-11-21 10:39:49 +01:00
parent aa0c3dced8
commit 5ed85963a9
3 changed files with 5 additions and 2 deletions

View File

@@ -868,7 +868,8 @@ def test_rpcforcebuy(mocker, default_conf, ticker, fee, limit_buy_order_open) ->
assert trade.open_rate == 0.0001
# Test buy pair not with stakes
with pytest.raises(RPCException, match=r'Wrong pair selected. Please pairs with stake.*'):
with pytest.raises(RPCException,
match=r'Wrong pair selected. Only pairs with stake-currency.*'):
rpc._rpc_forcebuy('LTC/ETH', 0.0001)
pair = 'XRP/BTC'