Skip to content

Commit 23ec039

Browse files
committed
unit tests
1 parent d91207d commit 23ec039

File tree

3 files changed

+80
-2
lines changed

3 files changed

+80
-2
lines changed

test/unit/models/test_rbm_action_open_url.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
import unittest
1717

1818
from bandwidth.models.rbm_action_open_url import RbmActionOpenUrl
19+
from bandwidth.models.rbm_action_type_enum import RbmActionTypeEnum
20+
from bandwidth.models.rbm_open_url_enum import RbmOpenUrlEnum
21+
from bandwidth.models.rbm_veb_view_enum import RbmVebViewEnum
1922

2023
class TestRbmActionOpenUrl(unittest.TestCase):
2124
"""RbmActionOpenUrl unit test stubs"""
@@ -33,10 +36,12 @@ def make_instance(self, include_optional) -> RbmActionOpenUrl:
3336
optional params are included """
3437
if include_optional:
3538
return RbmActionOpenUrl(
36-
type = 'REPLY',
39+
type = RbmActionTypeEnum.REPLY,
3740
text = 'Hello world',
3841
postback_data = 'U0dWc2JHOGdkMjl5YkdRPQ==',
39-
url = 'https://dev.bandwidth.com'
42+
url = 'https://dev.bandwidth.com',
43+
application=RbmOpenUrlEnum.BROWSER,
44+
webview_view_mode=RbmVebViewEnum.FULL,
4045
)
4146
else:
4247
return RbmActionOpenUrl(
@@ -55,6 +60,8 @@ def testRbmActionOpenUrl(self):
5560
assert instance.text == 'Hello world'
5661
assert instance.postback_data == 'U0dWc2JHOGdkMjl5YkdRPQ=='
5762
assert instance.url == 'https://dev.bandwidth.com'
63+
assert instance.application == 'BROWSER'
64+
assert instance.webview_view_mode == 'FULL'
5865

5966
if __name__ == '__main__':
6067
unittest.main()
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# coding: utf-8
2+
3+
"""
4+
Bandwidth
5+
6+
Bandwidth's Communication APIs
7+
8+
The version of the OpenAPI document: 1.0.0
9+
10+
Generated by OpenAPI Generator (https://openapi-generator.tech)
11+
12+
Do not edit the class manually.
13+
""" # noqa: E501
14+
15+
16+
import unittest
17+
18+
from bandwidth.models.rbm_open_url_enum import RbmOpenUrlEnum
19+
20+
class TestRbmOpenUrlEnum(unittest.TestCase):
21+
"""RbmOpenUrlEnum unit test stubs"""
22+
23+
def setUp(self):
24+
pass
25+
26+
def tearDown(self):
27+
pass
28+
29+
def testRbmOpenUrlEnum(self):
30+
"""Test RbmOpenUrlEnum"""
31+
assert RbmOpenUrlEnum('BROWSER') == 'BROWSER'
32+
assert RbmOpenUrlEnum('WEBVIEW') == 'WEBVIEW'
33+
34+
if __name__ == '__main__':
35+
unittest.main()
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# coding: utf-8
2+
3+
"""
4+
Bandwidth
5+
6+
Bandwidth's Communication APIs
7+
8+
The version of the OpenAPI document: 1.0.0
9+
10+
Generated by OpenAPI Generator (https://openapi-generator.tech)
11+
12+
Do not edit the class manually.
13+
""" # noqa: E501
14+
15+
16+
import unittest
17+
18+
from bandwidth.models.rbm_veb_view_enum import RbmVebViewEnum
19+
20+
class TestRbmVebViewEnum(unittest.TestCase):
21+
"""RbmVebViewEnum unit test stubs"""
22+
23+
def setUp(self):
24+
pass
25+
26+
def tearDown(self):
27+
pass
28+
29+
def testRbmVebViewEnum(self):
30+
"""Test RbmVebViewEnum"""
31+
assert RbmVebViewEnum('FULL') == 'FULL'
32+
assert RbmVebViewEnum('HALF') == 'HALF'
33+
assert RbmVebViewEnum('TALL') == 'TALL'
34+
35+
if __name__ == '__main__':
36+
unittest.main()

0 commit comments

Comments
 (0)