Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

682 B
Raw Blame
from zerver.lib.test_classes import WebhookTestCase


class CrashlyticsHookTests(WebhookTestCase):
    def test_crashlytics_verification_message(self) -> None:
        expected_topic_name = "Setup"
        expected_message = "Webhook has been successfully configured."
        self.check_webhook("verification", expected_topic_name, expected_message)

    def test_crashlytics_build_in_success_status(self) -> None:
        expected_topic_name = "123: Issue Title"
        expected_message = (
            "[Issue](http://crashlytics.com/full/url/to/issue) impacts at least 16 device(s)."
        )
        self.check_webhook("issue_message", expected_topic_name, expected_message)