/trades shall only return closed trades

This commit is contained in:
Matthias
2020-07-23 07:50:45 +02:00
parent 8300eb59d4
commit fdc84eef59
5 changed files with 14 additions and 14 deletions

View File

@@ -1168,7 +1168,7 @@ def test_telegram_trades(mocker, update, default_conf, fee):
context.args = [5]
telegram._trades(update=update, context=context)
msg_mock.call_count == 1
assert "3 recent trades</b>:" in msg_mock.call_args_list[0][0][0]
assert "2 recent trades</b>:" in msg_mock.call_args_list[0][0][0]
assert "Profit (" in msg_mock.call_args_list[0][0][0]
assert "Open Date" in msg_mock.call_args_list[0][0][0]
assert "<pre>" in msg_mock.call_args_list[0][0][0]