Beispiel #1
0
    def test_chat_message(self) -> None:
        expected_topic = "Live Chat Session - Zulip Chat"
        expected_message = CHAT_MESSAGE_TEMPLATE.format(
            status='visitor',
            name='John Smith',
            content='Zulip is awesome!'
        )

        self.send_and_test_stream_message('chat_message', expected_topic, expected_message,
                                          content_type="application/x-www-form-urlencoded")
Beispiel #2
0
    def test_chat_message(self) -> None:
        expected_topic = "Live Chat Session - Zulip Chat"
        expected_message = CHAT_MESSAGE_TEMPLATE.format(
            status='visitor', name='John Smith', content='Zulip is awesome!')

        self.send_and_test_stream_message(
            'chat_message',
            expected_topic,
            expected_message,
            content_type="application/x-www-form-urlencoded")
Beispiel #3
0
    def test_chat_message(self) -> None:
        expected_topic = "Live Chat Session - Zulip Chat"
        expected_message = CHAT_MESSAGE_TEMPLATE.format(
            status='visitor',
            name='John Smith',
            content='Zulip is awesome!',
        )

        self.check_webhook(
            "chat_message",
            expected_topic,
            expected_message,
            content_type="application/x-www-form-urlencoded",
        )