mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
Generated by `pyupgrade --py3-plus --keep-percent-format` on all our Python code except `zthumbor` and `zulip-ec2-configure-interfaces`, followed by manual indentation fixes. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
13 lines
619 B
Python
13 lines
619 B
Python
from zerver.lib.test_classes import WebhookTestCase
|
|
|
|
|
|
class ErrBitHookTests(WebhookTestCase):
|
|
STREAM_NAME = 'errbit'
|
|
URL_TEMPLATE = "/api/v1/external/errbit?stream={stream}&api_key={api_key}"
|
|
FIXTURE_DIR_NAME = 'errbit'
|
|
|
|
def test_errbit_error_message(self) -> None:
|
|
expected_topic = "ZulipIntegrationTest / ErrbitEnvName"
|
|
expected_message = "[IllegalStateException](https://errbit.example.com/apps/5e1ed1ff1a603f3916f4f0de/problems/5e1fe93e1a603f3916f4f0e3): \"Invalid state error\" occurred."
|
|
self.send_and_test_stream_message('error_message', expected_topic, expected_message)
|