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 fdc14ee3f0)
This commit is contained in:
Satyam Bansal
2023-07-10 19:35:23 +05:30
committed by Alex Vandiver
parent ec8a284ad5
commit d3048b8791
2 changed files with 2 additions and 2 deletions

View File

@@ -251,7 +251,7 @@ This is an example python exception
```""" ```"""
self.check_webhook("deprecated_exception_message", expected_topic, expected_message) 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_topic = "This is an example Python exception"
expected_message = """\ expected_message = """\
**New message event:** [This is an example Python exception](https://sentry.io/organizations/nitk-46/issues/4218258981/events/b6eff1a49b1f4132850b1238d968da70/) **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 **level:** error
**timestamp:** 2023-05-31 11:06:16 **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)