From 712cd85aaef8b5feecf86f5d1f94e5c6d8d7d715 Mon Sep 17 00:00:00 2001 From: lucasheld Date: Thu, 25 May 2023 18:35:56 +0200 Subject: [PATCH] test: fix notification test --- tests/test_notification.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_notification.py b/tests/test_notification.py index 7420fe8..700e08f 100644 --- a/tests/test_notification.py +++ b/tests/test_notification.py @@ -19,7 +19,7 @@ class TestNotification(UptimeKumaTestCase): } # test notification - with self.assertRaisesRegex(UptimeKumaException, r'Invalid API key'): + with self.assertRaisesRegex(UptimeKumaException, r'Not Found'): self.api.test_notification(**expected_notification) # add notification @@ -43,7 +43,8 @@ class TestNotification(UptimeKumaTestCase): expected_notification["applyExisting"] = False expected_notification["type"] = NotificationType.PUSHDEER expected_notification["pushdeerKey"] = "987654321" - del expected_notification["pushAPIKey"] + del expected_notification["telegramChatID"] + del expected_notification["telegramBotToken"] r = self.api.edit_notification(notification_id, **expected_notification) self.assertEqual(r["msg"], "Saved") notification = self.api.get_notification(notification_id)