From d3048b8791d45b324e5ca9ad40e949fd04cfb7d0 Mon Sep 17 00:00:00 2001 From: Satyam Bansal Date: Mon, 10 Jul 2023 19:35:23 +0530 Subject: [PATCH] integrations: Rename fixture in Sentry integration. This is done to clarify from where this fixture is coming from; as there are two documented ways to test the integration. (cherry picked from commit fdc14ee3f00e0357e370583ca09790541864f5c0) --- .../{sample_event.json => sample_event_through_alert.json} | 0 zerver/webhooks/sentry/tests.py | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename zerver/webhooks/sentry/fixtures/{sample_event.json => sample_event_through_alert.json} (100%) diff --git a/zerver/webhooks/sentry/fixtures/sample_event.json b/zerver/webhooks/sentry/fixtures/sample_event_through_alert.json similarity index 100% rename from zerver/webhooks/sentry/fixtures/sample_event.json rename to zerver/webhooks/sentry/fixtures/sample_event_through_alert.json diff --git a/zerver/webhooks/sentry/tests.py b/zerver/webhooks/sentry/tests.py index 22d886eeff..97dde24c3d 100644 --- a/zerver/webhooks/sentry/tests.py +++ b/zerver/webhooks/sentry/tests.py @@ -251,7 +251,7 @@ This is an example python exception ```""" self.check_webhook("deprecated_exception_message", expected_topic, expected_message) - def test_sample_event(self) -> None: + def test_sample_event_through_alert(self) -> None: expected_topic = "This is an example Python exception" expected_message = """\ **New message event:** [This is an example Python exception](https://sentry.io/organizations/nitk-46/issues/4218258981/events/b6eff1a49b1f4132850b1238d968da70/) @@ -259,4 +259,4 @@ This is an example python exception **level:** error **timestamp:** 2023-05-31 11:06:16 ```""" - self.check_webhook("sample_event", expected_topic, expected_message) + self.check_webhook("sample_event_through_alert", expected_topic, expected_message)