|
|
|
|
@ -1335,8 +1335,8 @@ def test_send_msg_sell_cancel_notification(default_conf, mocker) -> None:
|
|
|
|
|
'reason': 'Cancelled on exchange'
|
|
|
|
|
})
|
|
|
|
|
assert msg_mock.call_args[0][0] \
|
|
|
|
|
== ('\N{WARNING SIGN} *Binance:* Cancelling Open Sell Order for KEY/ETH (#1).'
|
|
|
|
|
' Reason: Cancelled on exchange')
|
|
|
|
|
== ('\N{WARNING SIGN} *Binance:* Cancelling open sell Order for KEY/ETH (#1).'
|
|
|
|
|
' Reason: Cancelled on exchange.')
|
|
|
|
|
|
|
|
|
|
msg_mock.reset_mock()
|
|
|
|
|
telegram.send_msg({
|
|
|
|
|
@ -1347,8 +1347,8 @@ def test_send_msg_sell_cancel_notification(default_conf, mocker) -> None:
|
|
|
|
|
'reason': 'timeout'
|
|
|
|
|
})
|
|
|
|
|
assert msg_mock.call_args[0][0] \
|
|
|
|
|
== ('\N{WARNING SIGN} *Binance:* Cancelling Open Sell Order for KEY/ETH (#1).'
|
|
|
|
|
' Reason: timeout')
|
|
|
|
|
== ('\N{WARNING SIGN} *Binance:* Cancelling open sell Order for KEY/ETH (#1).'
|
|
|
|
|
' Reason: timeout.')
|
|
|
|
|
# Reset singleton function to avoid random breaks
|
|
|
|
|
telegram._rpc._fiat_converter.convert_amount = old_convamount
|
|
|
|
|
|
|
|
|
|
|