From 53c548f7b602ea60d5488338c87da4fbd4b63bbc Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 20 Apr 2024 09:35:05 +0200 Subject: [PATCH] Fix test to actually work --- tests/rpc/test_rpc_telegram.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/rpc/test_rpc_telegram.py b/tests/rpc/test_rpc_telegram.py index fc0e49074..4d2a2dea1 100644 --- a/tests/rpc/test_rpc_telegram.py +++ b/tests/rpc/test_rpc_telegram.py @@ -2032,14 +2032,14 @@ def test_send_msg_enter_notification(default_conf, mocker, caplog, message_type, '*Total:* `0.01465333 BTC / 180.895 USD`' ) - freqtradebot.config['telegram']['notification_settings'] = {'buy': 'off'} + freqtradebot.config['telegram']['notification_settings'] = {'entry': 'off'} caplog.clear() msg_mock.reset_mock() telegram.send_msg(msg) assert msg_mock.call_count == 0 - log_has("Notification 'buy' not sent.", caplog) + assert log_has("Notification 'entry' not sent.", caplog) - freqtradebot.config['telegram']['notification_settings'] = {'buy': 'silent'} + freqtradebot.config['telegram']['notification_settings'] = {'entry': 'silent'} caplog.clear() msg_mock.reset_mock()