Skip to content

Commit 22ded7e

Browse files
committed
update unit tests
1 parent 345d8e3 commit 22ded7e

2 files changed

Lines changed: 54 additions & 0 deletions

File tree

test/unit/models/test_rbm_message_carousel_card.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,24 @@ def make_instance(self, include_optional) -> RbmMessageCarouselCard:
3939
return RbmMessageCarouselCard(
4040
card_width = 'SMALL',
4141
card_contents = [
42+
RbmCardContent(
43+
title = 'Bandwidth',
44+
description = 'Bandwidth is a communications platform as a service (CPaaS) company.',
45+
media = RbmCardContentMedia(
46+
file_url = 'https://dev.bandwidth.com/images/bandwidth-logo.png',
47+
thumbnail_url = 'https://dev.bandwidth.com/images/bandwidth-logo.png',
48+
height = 'SHORT'
49+
),
50+
suggestions = [
51+
MultiChannelAction(
52+
RbmActionBase(
53+
type = 'REPLY',
54+
text = 'Hello world',
55+
postback_data = '[B@32298473'
56+
)
57+
)
58+
],
59+
),
4260
RbmCardContent(
4361
title = 'Bandwidth',
4462
description = 'Bandwidth is a communications platform as a service (CPaaS) company.',
@@ -72,6 +90,24 @@ def make_instance(self, include_optional) -> RbmMessageCarouselCard:
7290
return RbmMessageCarouselCard(
7391
card_width = 'SMALL',
7492
card_contents = [
93+
RbmCardContent(
94+
title = 'Bandwidth',
95+
description = 'Bandwidth is a communications platform as a service (CPaaS) company.',
96+
media = RbmCardContentMedia(
97+
file_url = 'https://dev.bandwidth.com/images/bandwidth-logo.png',
98+
thumbnail_url = 'https://dev.bandwidth.com/images/bandwidth-logo.png',
99+
height = 'SHORT'
100+
),
101+
suggestions = [
102+
MultiChannelAction(
103+
RbmActionBase(
104+
type = 'REPLY',
105+
text = 'Hello world',
106+
postback_data = '[B@32298473'
107+
)
108+
)
109+
],
110+
),
75111
RbmCardContent(
76112
title = 'Bandwidth',
77113
description = 'Bandwidth is a communications platform as a service (CPaaS) company.',

test/unit/models/test_rbm_message_content_rich_card.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,24 @@ def testRbmMessageContentRichCard(self):
7474
model_rbm_message_carousel_card = RbmMessageContentRichCard(RbmMessageCarouselCard(
7575
card_width = 'SMALL',
7676
card_contents = [
77+
RbmCardContent(
78+
title = 'Bandwidth',
79+
description = 'Bandwidth is a communications platform as a service (CPaaS) company.',
80+
media = RbmCardContentMedia(
81+
file_url = 'https://dev.bandwidth.com/images/bandwidth-logo.png',
82+
thumbnail_url = 'https://dev.bandwidth.com/images/bandwidth-logo.png',
83+
height = 'SHORT'
84+
),
85+
suggestions = [
86+
MultiChannelAction(
87+
RbmActionBase(
88+
type = 'REPLY',
89+
text = 'Hello world',
90+
postback_data = '[B@32298473'
91+
)
92+
)
93+
],
94+
),
7795
RbmCardContent(
7896
title = 'Bandwidth',
7997
description = 'Bandwidth is a communications platform as a service (CPaaS) company.',

0 commit comments

Comments
 (0)