Minor fix in amount_to_precision logic

This commit is contained in:
Matthias
2022-08-15 20:29:05 +02:00
parent c0bdb71810
commit e818797427
2 changed files with 4 additions and 2 deletions

View File

@@ -761,7 +761,7 @@ def test_rpc_force_exit(default_conf, ticker, fee, mocker) -> None:
# and trade amount is updated
rpc._rpc_force_exit('3')
assert cancel_order_mock.call_count == 1
assert trade.amount == filled_amount
assert pytest.approx(trade.amount) == filled_amount
mocker.patch(
'freqtrade.exchange.Exchange.fetch_order',