Fixed freqtradebot failing tests

This commit is contained in:
Sam Germain 2021-09-08 02:16:25 -06:00
parent a1c9a4d619
commit b2f289e404
2 changed files with 2 additions and 2 deletions

View File

@ -852,7 +852,7 @@ class FreqtradeBot(LoggingMixin):
f"for pair {trade.pair}.")
def _check_and_execute_exit(self, trade: Trade, exit_rate: float,
enter: bool, exit_: bool) -> bool:
buy: bool, sell: bool) -> bool:
"""
Check and execute exit
"""

View File

@ -1190,7 +1190,7 @@ def test_create_stoploss_order_invalid_order(mocker, default_conf, caplog, fee,
assert trade.stoploss_order_id is None
assert trade.sell_reason == SellType.EMERGENCY_SELL.value
assert log_has("Unable to place a stoploss order on exchange. ", caplog)
assert log_has("Selling the trade forcefully", caplog)
assert log_has("Exiting the trade forcefully", caplog)
# Should call a market sell
assert create_order_mock.call_count == 2