From e71ce4ef089be540199b52a3af770165dc84c2c3 Mon Sep 17 00:00:00 2001 From: xliee Date: Sun, 30 Jul 2023 17:46:34 +0200 Subject: [PATCH] update tests --- tests/test_base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_base.py b/tests/test_base.py index bf34b4e..1da04cb 100644 --- a/tests/test_base.py +++ b/tests/test_base.py @@ -32,6 +32,7 @@ def test_complex_send_notification(self): '*[Sentry]* {project_name} {tag[level]}: {title}\n{message}\n{url}', self.project, ) + self.plugin.set_option('disable_web_preview', True, self.project) event = self.store_event( data={ @@ -63,6 +64,7 @@ def test_complex_send_notification(self): assert payload == { 'text': message_text, 'parse_mode': 'Markdown', + 'disable_web_page_preview': True, 'chat_id': '123', } @@ -77,6 +79,7 @@ def assert_notification_helper(request_call, message_text): json={ 'text': message_text, 'parse_mode': 'Markdown', + 'disable_web_page_preview': True, 'chat_id': '123', }, timeout=30,