Update dry-run order handling to use realistic fill prices

closes #3389
This commit is contained in:
Matthias
2021-06-03 20:55:18 +02:00
parent a0893b291a
commit 1e988c97ad
5 changed files with 84 additions and 19 deletions

View File

@@ -2117,6 +2117,7 @@ def test_get_historic_trades_notsupported(default_conf, mocker, caplog, exchange
def test_cancel_order_dry_run(default_conf, mocker, exchange_name):
default_conf['dry_run'] = True
exchange = get_patched_exchange(mocker, default_conf, id=exchange_name)
mocker.patch('freqtrade.exchange.Exchange.dry_limit_order_filled', return_value=True)
assert exchange.cancel_order(order_id='123', pair='TKN/BTC') == {}
assert exchange.cancel_stoploss_order(order_id='123', pair='TKN/BTC') == {}