Skip to content

Commit d2c9b92

Browse files
committed
[DEVX-4966] Remove max page size coercion from library.
1 parent 21fc89a commit d2c9b92

File tree

226 files changed

+756
-1573
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

226 files changed

+756
-1573
lines changed

tests/integration/accounts/v1/credential/test_public_key.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def test_read_empty_response(self):
3737
"key": "credentials",
3838
"next_page_url": null,
3939
"page": 0,
40+
"count": 0,
4041
"page_size": 50,
4142
"previous_page_url": null,
4243
"url": "https://accounts.twilio.com/v1/Credentials/PublicKeys?PageSize=50&Page=0"
@@ -70,6 +71,7 @@ def test_read_full_response(self):
7071
"key": "credentials",
7172
"next_page_url": null,
7273
"page": 0,
74+
"count": 1,
7375
"page_size": 50,
7476
"previous_page_url": null,
7577
"url": "https://accounts.twilio.com/v1/Credentials/PublicKeys?PageSize=50&Page=0"

tests/integration/api/v2010/account/address/test_dependent_phone_number.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def test_read_full_response(self):
3232
200,
3333
'''
3434
{
35+
"count": 1,
3536
"dependent_phone_numbers": [
3637
{
3738
"address_requirements": "any",
@@ -72,6 +73,7 @@ def test_read_empty_response(self):
7273
200,
7374
'''
7475
{
76+
"count": 0,
7577
"dependent_phone_numbers": [],
7678
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Addresses/ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/DependentPhoneNumbers.json?Page=0&PageSize=50",
7779
"next_page_uri": null,

tests/integration/api/v2010/account/available_phone_number/test_local.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def test_read_full_response(self):
4545
"iso_country": "US",
4646
"lata": "834",
4747
"latitude": "19.720000",
48+
"locality": "Hilo",
4849
"longitude": "-155.090000",
4950
"phone_number": "+18089251571",
5051
"postal_code": "96720",
@@ -58,6 +59,7 @@ def test_read_full_response(self):
5859
"next_page_uri": null,
5960
"num_pages": 1,
6061
"page": 0,
62+
"count": 1,
6163
"page_size": 50,
6264
"previous_page_uri": null,
6365
"start": 0,
@@ -84,6 +86,7 @@ def test_read_empty_response(self):
8486
"next_page_uri": null,
8587
"num_pages": 1,
8688
"page": 0,
89+
"count": 0,
8790
"page_size": 50,
8891
"previous_page_uri": null,
8992
"start": 0,

tests/integration/api/v2010/account/available_phone_number/test_mobile.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def test_read_full_response(self):
4545
"iso_country": "NO",
4646
"lata": null,
4747
"latitude": null,
48+
"locality": null,
4849
"longitude": null,
4950
"phone_number": "+4759440374",
5051
"postal_code": null,
@@ -57,6 +58,7 @@ def test_read_full_response(self):
5758
"next_page_uri": null,
5859
"num_pages": 1,
5960
"page": 0,
61+
"count": 1,
6062
"page_size": 50,
6163
"previous_page_uri": null,
6264
"start": 0,
@@ -83,6 +85,7 @@ def test_read_empty_response(self):
8385
"next_page_uri": null,
8486
"num_pages": 1,
8587
"page": 0,
88+
"count": 0,
8689
"page_size": 50,
8790
"previous_page_uri": null,
8891
"start": 0,

tests/integration/api/v2010/account/available_phone_number/test_toll_free.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def test_read_full_response(self):
4545
"iso_country": "US",
4646
"lata": null,
4747
"latitude": null,
48+
"locality": null,
4849
"longitude": null,
4950
"phone_number": "+18001000052",
5051
"postal_code": null,
@@ -57,6 +58,7 @@ def test_read_full_response(self):
5758
"next_page_uri": null,
5859
"num_pages": 1,
5960
"page": 0,
61+
"count": 1,
6062
"page_size": 50,
6163
"previous_page_uri": null,
6264
"start": 0,
@@ -83,6 +85,7 @@ def test_read_empty_response(self):
8385
"next_page_uri": null,
8486
"num_pages": 1,
8587
"page": 0,
88+
"count": 0,
8689
"page_size": 50,
8790
"previous_page_uri": null,
8891
"start": 0,

tests/integration/api/v2010/account/call/test_notification.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ def test_read_full_response(self):
126126
],
127127
"num_pages": 1,
128128
"page": 0,
129+
"count": 1,
129130
"page_size": 50,
130131
"previous_page_uri": null,
131132
"start": 0,
@@ -153,6 +154,7 @@ def test_read_empty_response(self):
153154
"notifications": [],
154155
"num_pages": 1,
155156
"page": 0,
157+
"count": 0,
156158
"page_size": 50,
157159
"previous_page_uri": null,
158160
"start": 0,

tests/integration/api/v2010/account/call/test_recording.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def test_read_full_response(self):
9494
200,
9595
'''
9696
{
97+
"count": 1,
9798
"end": 0,
9899
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings.json?PageSize=50&Page=0",
99100
"last_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings.json?PageSize=50&Page=0",
@@ -133,6 +134,7 @@ def test_read_empty_response(self):
133134
200,
134135
'''
135136
{
137+
"count": 0,
136138
"end": 0,
137139
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings.json?PageSize=50&Page=0",
138140
"last_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings.json?PageSize=50&Page=0",

tests/integration/api/v2010/account/conference/test_participant.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ def test_read_full_response(self):
206206
200,
207207
'''
208208
{
209+
"count": 1,
209210
"end": 0,
210211
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants.json?Page=0&PageSize=50",
211212
"next_page_uri": null,
@@ -244,6 +245,7 @@ def test_read_empty_response(self):
244245
200,
245246
'''
246247
{
248+
"count": 0,
247249
"end": 0,
248250
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants.json?Page=0&PageSize=50",
249251
"next_page_uri": null,

tests/integration/api/v2010/account/incoming_phone_number/test_local.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def test_read_full_response(self):
3232
200,
3333
'''
3434
{
35+
"count": 1,
3536
"end": 0,
3637
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Local.json?PageSize=1&Page=0",
3738
"incoming_phone_numbers": [
@@ -49,6 +50,7 @@ def test_read_full_response(self):
4950
"date_updated": "Thu, 30 Jul 2015 23:19:04 +0000",
5051
"friendly_name": "(808) 925-5327",
5152
"phone_number": "+18089255327",
53+
"origin": "origin",
5254
"sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
5355
"sms_application_sid": "",
5456
"sms_fallback_method": "POST",
@@ -91,6 +93,7 @@ def test_read_empty_response(self):
9193
200,
9294
'''
9395
{
96+
"count": 0,
9497
"end": 0,
9598
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Local.json?PageSize=1&Page=0",
9699
"incoming_phone_numbers": [],
@@ -149,6 +152,7 @@ def test_create_response(self):
149152
"date_updated": "Thu, 30 Jul 2015 23:19:04 +0000",
150153
"friendly_name": "(808) 925-5327",
151154
"phone_number": "+18089255327",
155+
"origin": "origin",
152156
"sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
153157
"sms_application_sid": "",
154158
"sms_fallback_method": "POST",

tests/integration/api/v2010/account/incoming_phone_number/test_mobile.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def test_read_full_response(self):
3232
200,
3333
'''
3434
{
35+
"count": 1,
3536
"end": 0,
3637
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Mobile.json?Page=0&PageSize=50",
3738
"incoming_phone_numbers": [
@@ -49,6 +50,7 @@ def test_read_full_response(self):
4950
"date_updated": "Tue, 08 Sep 2015 16:21:16 +0000",
5051
"friendly_name": "61429099450",
5152
"phone_number": "+61429099450",
53+
"origin": "origin",
5254
"sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
5355
"sms_application_sid": "",
5456
"sms_fallback_method": "POST",
@@ -91,6 +93,7 @@ def test_read_empty_response(self):
9193
200,
9294
'''
9395
{
96+
"count": 0,
9497
"end": 0,
9598
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/Mobile.json?Page=0&PageSize=50",
9699
"incoming_phone_numbers": [],
@@ -149,6 +152,7 @@ def test_create_response(self):
149152
"date_updated": "Thu, 30 Jul 2015 23:19:04 +0000",
150153
"friendly_name": "(808) 925-5327",
151154
"phone_number": "+18089255327",
155+
"origin": "origin",
152156
"sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
153157
"sms_application_sid": "",
154158
"sms_fallback_method": "POST",

0 commit comments

Comments
 (0)