Better handle cancelled buy orders

This commit is contained in:
Matthias
2020-08-01 15:59:50 +02:00
parent f3af02c06f
commit 071e82043a
4 changed files with 31 additions and 8 deletions

View File

@@ -1818,7 +1818,7 @@ def test_cancel_order_with_result_error(default_conf, mocker, exchange_name, cap
res = exchange.cancel_order_with_result('1234', 'ETH/BTC', 1541)
assert isinstance(res, dict)
assert log_has("Could not cancel order 1234.", caplog)
assert log_has("Could not cancel order 1234 for ETH/BTC.", caplog)
assert log_has("Could not fetch cancelled order 1234.", caplog)
assert res['amount'] == 1541