Skip to content

Commit c6c85f3

Browse files
committed
add/remove model tests
1 parent a0cd0bb commit c6c85f3

7 files changed

Lines changed: 317 additions & 133 deletions
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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+
Contact: letstalk@bandwidth.com
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.brtc_error import BrtcError
19+
20+
class TestBrtcError(unittest.TestCase):
21+
"""BrtcError unit test stubs"""
22+
23+
def setUp(self):
24+
pass
25+
26+
def tearDown(self):
27+
pass
28+
29+
def make_instance(self, include_optional) -> BrtcError:
30+
"""Test BrtcError
31+
include_optional is a boolean, when False only required
32+
params are included, when True both required and
33+
optional params are included """
34+
# uncomment below to create an instance of `BrtcError`
35+
"""
36+
model = BrtcError()
37+
if include_optional:
38+
return BrtcError(
39+
id = '59512d87-7a92-4040-8e4a-78fb772019b9',
40+
type = 'resource.not_found',
41+
description = 'The requested resource was not found.',
42+
code = '404',
43+
source = bandwidth.models.brtc_error_source.brtcErrorSource(
44+
parameter = 'accountId',
45+
field = 'accountId',
46+
header = 'Authorization',
47+
reference = 'e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85', )
48+
)
49+
else:
50+
return BrtcError(
51+
type = 'resource.not_found',
52+
description = 'The requested resource was not found.',
53+
)
54+
"""
55+
56+
def testBrtcError(self):
57+
"""Test BrtcError"""
58+
# inst_req_only = self.make_instance(include_optional=False)
59+
# inst_req_and_optional = self.make_instance(include_optional=True)
60+
61+
if __name__ == '__main__':
62+
unittest.main()
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
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+
Contact: letstalk@bandwidth.com
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.brtc_error_response import BrtcErrorResponse
19+
20+
class TestBrtcErrorResponse(unittest.TestCase):
21+
"""BrtcErrorResponse unit test stubs"""
22+
23+
def setUp(self):
24+
pass
25+
26+
def tearDown(self):
27+
pass
28+
29+
def make_instance(self, include_optional) -> BrtcErrorResponse:
30+
"""Test BrtcErrorResponse
31+
include_optional is a boolean, when False only required
32+
params are included, when True both required and
33+
optional params are included """
34+
# uncomment below to create an instance of `BrtcErrorResponse`
35+
"""
36+
model = BrtcErrorResponse()
37+
if include_optional:
38+
return BrtcErrorResponse(
39+
links = [
40+
bandwidth.models.brtc_link.brtcLink(
41+
href = 'https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85',
42+
rel = 'self',
43+
method = 'GET', )
44+
],
45+
data = None,
46+
errors = [
47+
bandwidth.models.brtc_error.brtcError(
48+
id = '59512d87-7a92-4040-8e4a-78fb772019b9',
49+
type = 'resource.not_found',
50+
description = 'The requested resource was not found.',
51+
code = '404',
52+
source = bandwidth.models.brtc_error_source.brtcErrorSource(
53+
parameter = 'accountId',
54+
field = 'accountId',
55+
header = 'Authorization',
56+
reference = 'e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85', ), )
57+
]
58+
)
59+
else:
60+
return BrtcErrorResponse(
61+
links = [
62+
bandwidth.models.brtc_link.brtcLink(
63+
href = 'https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85',
64+
rel = 'self',
65+
method = 'GET', )
66+
],
67+
data = None,
68+
errors = [
69+
bandwidth.models.brtc_error.brtcError(
70+
id = '59512d87-7a92-4040-8e4a-78fb772019b9',
71+
type = 'resource.not_found',
72+
description = 'The requested resource was not found.',
73+
code = '404',
74+
source = bandwidth.models.brtc_error_source.brtcErrorSource(
75+
parameter = 'accountId',
76+
field = 'accountId',
77+
header = 'Authorization',
78+
reference = 'e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85', ), )
79+
],
80+
)
81+
"""
82+
83+
def testBrtcErrorResponse(self):
84+
"""Test BrtcErrorResponse"""
85+
# inst_req_only = self.make_instance(include_optional=False)
86+
# inst_req_and_optional = self.make_instance(include_optional=True)
87+
88+
if __name__ == '__main__':
89+
unittest.main()
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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+
Contact: letstalk@bandwidth.com
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.brtc_error_source import BrtcErrorSource
19+
20+
class TestBrtcErrorSource(unittest.TestCase):
21+
"""BrtcErrorSource unit test stubs"""
22+
23+
def setUp(self):
24+
pass
25+
26+
def tearDown(self):
27+
pass
28+
29+
def make_instance(self, include_optional) -> BrtcErrorSource:
30+
"""Test BrtcErrorSource
31+
include_optional is a boolean, when False only required
32+
params are included, when True both required and
33+
optional params are included """
34+
# uncomment below to create an instance of `BrtcErrorSource`
35+
"""
36+
model = BrtcErrorSource()
37+
if include_optional:
38+
return BrtcErrorSource(
39+
parameter = 'accountId',
40+
var_field = 'accountId',
41+
header = 'Authorization',
42+
reference = 'e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85'
43+
)
44+
else:
45+
return BrtcErrorSource(
46+
)
47+
"""
48+
49+
def testBrtcErrorSource(self):
50+
"""Test BrtcErrorSource"""
51+
# inst_req_only = self.make_instance(include_optional=False)
52+
# inst_req_and_optional = self.make_instance(include_optional=True)
53+
54+
if __name__ == '__main__':
55+
unittest.main()

test/unit/models/test_brtc_link.py

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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+
Contact: letstalk@bandwidth.com
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.brtc_link import BrtcLink
19+
20+
class TestBrtcLink(unittest.TestCase):
21+
"""BrtcLink unit test stubs"""
22+
23+
def setUp(self):
24+
pass
25+
26+
def tearDown(self):
27+
pass
28+
29+
def make_instance(self, include_optional) -> BrtcLink:
30+
"""Test BrtcLink
31+
include_optional is a boolean, when False only required
32+
params are included, when True both required and
33+
optional params are included """
34+
# uncomment below to create an instance of `BrtcLink`
35+
"""
36+
model = BrtcLink()
37+
if include_optional:
38+
return BrtcLink(
39+
href = 'https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85',
40+
rel = 'self',
41+
method = 'GET'
42+
)
43+
else:
44+
return BrtcLink(
45+
)
46+
"""
47+
48+
def testBrtcLink(self):
49+
"""Test BrtcLink"""
50+
# inst_req_only = self.make_instance(include_optional=False)
51+
# inst_req_and_optional = self.make_instance(include_optional=True)
52+
53+
if __name__ == '__main__':
54+
unittest.main()

test/unit/models/test_error.py

Lines changed: 0 additions & 61 deletions
This file was deleted.

test/unit/models/test_error_response.py

Lines changed: 0 additions & 72 deletions
This file was deleted.

0 commit comments

Comments
 (0)