Update tests to merged version
This commit is contained in:
parent
5fba446e9a
commit
a0fd7f4644
@ -1765,7 +1765,7 @@ def test_cancel_order_dry_run(default_conf, mocker, exchange_name):
|
|||||||
cancel_order = exchange.cancel_order(order_id=order['id'], pair='ETH/BTC')
|
cancel_order = exchange.cancel_order(order_id=order['id'], pair='ETH/BTC')
|
||||||
assert order['id'] == cancel_order['id']
|
assert order['id'] == cancel_order['id']
|
||||||
assert order['amount'] == cancel_order['amount']
|
assert order['amount'] == cancel_order['amount']
|
||||||
assert order['pair'] == cancel_order['pair']
|
assert order['symbol'] == cancel_order['symbol']
|
||||||
assert cancel_order['status'] == 'canceled'
|
assert cancel_order['status'] == 'canceled'
|
||||||
|
|
||||||
|
|
||||||
|
@ -716,11 +716,13 @@ def test_rpc_forcesell(default_conf, ticker, fee, mocker) -> None:
|
|||||||
mocker.patch(
|
mocker.patch(
|
||||||
'freqtrade.exchange.Exchange.fetch_order',
|
'freqtrade.exchange.Exchange.fetch_order',
|
||||||
side_effect=[{
|
side_effect=[{
|
||||||
|
'id': '1234',
|
||||||
'status': 'open',
|
'status': 'open',
|
||||||
'type': 'limit',
|
'type': 'limit',
|
||||||
'side': 'buy',
|
'side': 'buy',
|
||||||
'filled': filled_amount
|
'filled': filled_amount
|
||||||
}, {
|
}, {
|
||||||
|
'id': '1234',
|
||||||
'status': 'closed',
|
'status': 'closed',
|
||||||
'type': 'limit',
|
'type': 'limit',
|
||||||
'side': 'buy',
|
'side': 'buy',
|
||||||
|
Loading…
Reference in New Issue
Block a user