remove unused comments

This commit is contained in:
Stefano Ariestasia
2023-11-23 15:55:21 +09:00
parent 0e9169e1ec
commit 63e702a3bf
2 changed files with 0 additions and 9 deletions

View File

@@ -694,9 +694,6 @@ class Telegram(RPCHandler):
"*Open Order:* `{open_orders}`" "*Open Order:* `{open_orders}`"
+ ("- `{exit_order_status}`" if r['exit_order_status'] else "")) + ("- `{exit_order_status}`" if r['exit_order_status'] else ""))
# lines_detail = self._prepare_order_details(
# r['orders'], r['quote_currency'], r['is_open'])
# lines.extend(lines_detail if lines_detail else "")
await self.__send_status_msg(lines, r) await self.__send_status_msg(lines, r)
async def __send_status_msg(self, lines: List[str], r: Dict[str, Any]) -> None: async def __send_status_msg(self, lines: List[str], r: Dict[str, Any]) -> None:

View File

@@ -347,8 +347,6 @@ async def test_telegram_status_multi_entry(default_conf, update, mocker, fee) ->
msg = msg_mock.call_args_list[3][0][0] msg = msg_mock.call_args_list[3][0][0]
assert re.search(r'Number of Entries.*2', msg) assert re.search(r'Number of Entries.*2', msg)
assert re.search(r'Number of Exits.*1', msg) assert re.search(r'Number of Exits.*1', msg)
# assert re.search(r'from 1st entry rate', msg)
# assert re.search(r'Order Filled', msg)
assert re.search(r'Close Date:', msg) is None assert re.search(r'Close Date:', msg) is None
assert re.search(r'Close Profit:', msg) is None assert re.search(r'Close Profit:', msg) is None
@@ -409,10 +407,8 @@ async def test_order_handle(default_conf, update, ticker, fee, mocker) -> None:
assert msg_mock.call_count == 1 assert msg_mock.call_count == 1
msg1 = msg_mock.call_args_list[0][0][0] msg1 = msg_mock.call_args_list[0][0][0]
# msg2 = msg_mock.call_args_list[1][0][0]
assert 'Order List for Trade #*`2`' in msg1 assert 'Order List for Trade #*`2`' in msg1
# assert 'Trade ID:* `2` - continued' in msg2
msg_mock.reset_mock() msg_mock.reset_mock()
mocker.patch('freqtrade.rpc.telegram.MAX_MESSAGE_LENGTH', 50) mocker.patch('freqtrade.rpc.telegram.MAX_MESSAGE_LENGTH', 50)
@@ -547,11 +543,9 @@ async def test_status_handle(default_conf, update, ticker, fee, mocker) -> None:
assert msg_mock.call_count == 1 assert msg_mock.call_count == 1
msg1 = msg_mock.call_args_list[0][0][0] msg1 = msg_mock.call_args_list[0][0][0]
# msg2 = msg_mock.call_args_list[1][0][0]
assert 'Close Rate' not in msg1 assert 'Close Rate' not in msg1
assert 'Trade ID:* `2`' in msg1 assert 'Trade ID:* `2`' in msg1
# assert 'Trade ID:* `2` - continued' in msg2
async def test_status_table_handle(default_conf, update, ticker, fee, mocker) -> None: async def test_status_table_handle(default_conf, update, ticker, fee, mocker) -> None: