Abstract creating stoploss-orders from stoploss-logic

This commit is contained in:
Matthias
2019-08-31 16:11:04 +02:00
parent a7e45c5a73
commit f0c0f5618b
2 changed files with 33 additions and 36 deletions

View File

@@ -1153,7 +1153,7 @@ def test_handle_stoploss_on_exchange(mocker, default_conf, fee, caplog,
side_effect=DependencyException()
)
freqtrade.handle_stoploss_on_exchange(trade)
assert log_has('Unable to place a stoploss order on exchange: ', caplog)
assert log_has('Unable to place a stoploss order on exchange.', caplog)
assert trade.stoploss_order_id is None
# Fifth case: get_order returns InvalidOrder