From 2b05a496711d7708c9fce5d59a449a10ee5c7b1e Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 17 Jul 2025 07:26:45 +0200 Subject: [PATCH] test: Update telegram /profit tests --- tests/rpc/test_rpc_telegram.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/rpc/test_rpc_telegram.py b/tests/rpc/test_rpc_telegram.py index 7935d7622..2fb501390 100644 --- a/tests/rpc/test_rpc_telegram.py +++ b/tests/rpc/test_rpc_telegram.py @@ -943,7 +943,7 @@ async def test_telegram_profit_handle( trade.is_open = False Trade.commit() - context.args = [3] + context.args = ["3"] await telegram._profit(update=update, context=context) assert msg_mock.call_count == 1 assert "*ROI:* Closed trades" in msg_mock.call_args_list[-1][0][0] @@ -1016,8 +1016,8 @@ async def test_telegram_profit_long_short_handle( Trade.commit() await telegram._profit_long(update=update, context=MagicMock()) msg = msg_mock.call_args_list[0][0][0] - assert "*ROI: Closed long trades*" in msg - assert "*ROI: All long trades" in msg + assert "*ROI:* Closed long trades" in msg + assert "*ROI:* All long trades" in msg assert "*Total Trade Count:*" in msg assert "*Winrate:*" in msg assert "*Expectancy (Ratio):*" in msg @@ -1033,8 +1033,8 @@ async def test_telegram_profit_long_short_handle( Trade.commit() await telegram._profit_short(update=update, context=MagicMock()) msg = msg_mock.call_args_list[0][0][0] - assert "*ROI: Closed short trades*" in msg - assert "*ROI: All short trades" in msg + assert "*ROI:* Closed short trades" in msg + assert "*ROI:* All short trades" in msg assert "*Total Trade Count:*" in msg assert "*Winrate:*" in msg assert "*Expectancy (Ratio):*" in msg