Skip to content

Commit 8716f90

Browse files
committed
Merge branch 'main' of https://github.com/Bandwidth/python-sdk into SWI-9387
2 parents df49da1 + 009e0d3 commit 8716f90

File tree

4 files changed

+26
-4
lines changed

4 files changed

+26
-4
lines changed

test/unit/api/test_toll_free_verification_api.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
from bandwidth.models.opt_in_workflow import OptInWorkflow
3737
from bandwidth.models.verification_request import VerificationRequest
3838
from bandwidth.models.tfv_submission_wrapper import TfvSubmissionWrapper
39+
from bandwidth.models.tfv_submission_info import TfvSubmissionInfo
40+
from bandwidth.models.business_registration_type_enum import BusinessRegistrationTypeEnum
41+
from bandwidth.models.business_entity_type_enum import BusinessEntityTypeEnum
3942

4043

4144
class TestTollFreeVerificationApi(unittest.TestCase):
@@ -90,7 +93,16 @@ def setUpClass(cls) -> None:
9093
confirmation_response='confirmationResponse'
9194
),
9295
'additionalInformation': 'additionalInformation',
93-
'isvReseller': 'isvReseller'
96+
'isvReseller': 'isvReseller',
97+
'privacyPolicyUrl': 'https://example.com',
98+
'termsAndConditionsUrl': 'https://example.com',
99+
'businessDba': 'businessDba',
100+
'businessRegistrationNumber': 'businessRegistrationNumber',
101+
'businessRegistrationType': BusinessRegistrationTypeEnum.EIN,
102+
'businessEntityType': BusinessEntityTypeEnum.NON_PROFIT,
103+
'helpMessageResponse': 'helpMessageResponse',
104+
'ageGatedContent': True,
105+
'cvToken': 'cvToken'
94106
}
95107

96108
def test_create_webhook_subscription(self) -> None:
@@ -137,6 +149,10 @@ def test_get_toll_free_verification_status(self) -> None:
137149
assert_that(response.data.resubmit_allowed, instance_of(bool))
138150
assert_that(response.data.created_date_time, instance_of(datetime))
139151
assert_that(response.data.modified_date_time, instance_of(datetime))
152+
assert_that(response.data.submission, instance_of(TfvSubmissionInfo))
153+
assert_that(response.data.blocked, instance_of(bool))
154+
assert_that(response.data.blocked_reason, instance_of(str))
155+
assert_that(response.data.cv_token, instance_of(str))
140156

141157
def test_delete_verification_request(self) -> None:
142158
"""Test case for delete_verification_request

test/unit/models/test_tfv_status.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ def make_instance(self, include_optional) -> TfvStatus:
8080
business_entity_type = 'SOLE_PROPRIETOR'
8181
),
8282
blocked = False,
83-
blocked_reason = 'Blocked Reason'
83+
blocked_reason = 'Blocked Reason',
84+
cv_token = 'cvToken'
8485
)
8586
else:
8687
return TfvStatus(
@@ -133,6 +134,7 @@ def testTfvStatus(self):
133134
assert instance.submission.additional_information == 'Any additional information'
134135
assert instance.blocked == False
135136
assert instance.blocked_reason == 'Blocked Reason'
137+
assert instance.cv_token == 'cvToken'
136138

137139

138140
if __name__ == '__main__':

test/unit/models/test_verification_request.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ def make_instance(self, include_optional) -> VerificationRequest:
7171
business_registration_type = 'EIN',
7272
business_entity_type = 'SOLE_PROPRIETOR',
7373
help_message_response = 'Please contact support for assistance.',
74-
age_gated_content = False
74+
age_gated_content = False,
75+
cv_token = 'cvToken'
7576
)
7677
else:
7778
return VerificationRequest(
@@ -144,6 +145,7 @@ def testVerificationRequest(self):
144145
assert instance.business_entity_type == 'SOLE_PROPRIETOR'
145146
assert instance.help_message_response == 'Please contact support for assistance.'
146147
assert instance.age_gated_content == False
148+
assert instance.cv_token == 'cvToken'
147149

148150
if __name__ == '__main__':
149151
unittest.main()

test/unit/models/test_verification_update_request.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ def make_instance(self, include_optional) -> VerificationUpdateRequest:
6868
business_registration_type = 'EIN',
6969
business_entity_type = 'SOLE_PROPRIETOR',
7070
help_message_response = 'Please contact support for assistance.',
71-
age_gated_content = False
71+
age_gated_content = False,
72+
cv_token = 'cvToken'
7273
)
7374
else:
7475
return VerificationUpdateRequest(
@@ -135,6 +136,7 @@ def testVerificationUpdateRequest(self):
135136
assert instance.business_entity_type == 'SOLE_PROPRIETOR'
136137
assert instance.help_message_response == 'Please contact support for assistance.'
137138
assert instance.age_gated_content == False
139+
assert instance.cv_token == 'cvToken'
138140

139141
if __name__ == '__main__':
140142
unittest.main()

0 commit comments

Comments
 (0)