Also provide stacktrace via log endpoints

This commit is contained in:
Matthias
2020-08-15 20:15:02 +02:00
parent f3d4b114bb
commit 56ca37fd8b
3 changed files with 12 additions and 8 deletions

View File

@@ -1124,8 +1124,8 @@ def test_telegram_logs(default_conf, update, mocker) -> None:
context.args = []
telegram._logs(update=update, context=context)
assert msg_mock.call_count == 1
assert "freqtrade.rpc.telegram" in msg_mock.call_args_list[0][0][0]
assert "freqtrade.resolvers.iresolver" in msg_mock.call_args_list[0][0][0]
assert "freqtrade\\.rpc\\.telegram" in msg_mock.call_args_list[0][0][0]
assert "freqtrade\\.resolvers\\.iresolver" in msg_mock.call_args_list[0][0][0]
msg_mock.reset_mock()
context.args = ["1"]