test: update test_telegram_list_custom_data

This commit is contained in:
Axel-CH
2025-03-18 00:52:21 -04:00
parent 17e4f5ed1f
commit 06406b7103

View File

@@ -2874,11 +2874,11 @@ async def test_telegram_list_custom_data(default_conf_usdt, update, ticker, fee,
assert msg_mock.call_count == 3
assert "Found custom-data entries: " in msg_mock.call_args_list[0][0][0]
assert (
"*Key:* `test_int`\n*ID:* `1`\n*Trade ID:* `1`\n*Type:* `int`\n*Value:* `1`\n*Create Date:*"
"*Trade ID:* `1`\n*Key:* `test_int`\n*Type:* `int`\n*Value:* `1`\n*Create Date:*"
) in msg_mock.call_args_list[1][0][0]
assert (
"*Key:* `test_dict`\n*ID:* `2`\n*Trade ID:* `1`\n*Type:* `dict`\n"
'*Value:* `{"test": "dict"}`\n*Create Date:* `'
"*Trade ID:* `1`\n*Key:* `test_dict`\n*Type:* `dict`\n"
"*Value:* `{'test': 'dict'}`\n*Create Date:* `"
) in msg_mock.call_args_list[2][0][0]
msg_mock.reset_mock()