Fix some faulty assertions

This commit is contained in:
Matthias
2024-04-20 09:39:11 +02:00
parent 53c548f7b6
commit df712c0168
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -3122,7 +3122,7 @@ def test_exit_profit_only(
if profit_only:
assert freqtrade.handle_trade(trade) is False
# Custom-exit is called
freqtrade.strategy.custom_exit.call_count == 1
assert freqtrade.strategy.custom_exit.call_count == 1
patch_get_signal(freqtrade, enter_long=False, exit_short=is_short, exit_long=not is_short)
assert freqtrade.handle_trade(trade) is handle_first