From c4a3459590312730fedd78b00060ce0d026749e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=86=D0=B2=D0=B0=D0=BD=20=D0=9D=D1=94=D0=B4=D1=94=D0=BB?= =?UTF-8?q?=D1=8C=D0=BD=D1=96=D1=86=D0=B5=D0=B2?= Date: Thu, 25 Jul 2024 11:40:10 +0300 Subject: [PATCH] test: [FC-0047] add check for push notif channel --- edx_ace/tests/channel/test_channel_helpers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/edx_ace/tests/channel/test_channel_helpers.py b/edx_ace/tests/channel/test_channel_helpers.py index ef0c2ca7..ea42cc42 100644 --- a/edx_ace/tests/channel/test_channel_helpers.py +++ b/edx_ace/tests/channel/test_channel_helpers.py @@ -8,6 +8,7 @@ from edx_ace.channel import ChannelMap, ChannelType, get_channel_for_message from edx_ace.channel.braze import BrazeEmailChannel from edx_ace.channel.file import FileEmailChannel +from edx_ace.channel.push_notification import PushNotificationChannel from edx_ace.errors import UnsupportedChannelError from edx_ace.message import Message from edx_ace.recipient import Recipient @@ -58,6 +59,7 @@ def test_get_channel_for_message(self): assert isinstance(get_channel_for_message(ChannelType.EMAIL, transactional_msg), FileEmailChannel) assert isinstance(get_channel_for_message(ChannelType.EMAIL, transactional_campaign_msg), BrazeEmailChannel) assert isinstance(get_channel_for_message(ChannelType.EMAIL, info_msg), BrazeEmailChannel) + assert isinstance(get_channel_for_message(ChannelType.PUSH, info_msg), PushNotificationChannel) with self.assertRaises(UnsupportedChannelError): assert get_channel_for_message(ChannelType.PUSH, transactional_msg)