@@ -31,13 +31,16 @@ def test_all_organizations(self, mock_rc):
31
31
'take' : None })
32
32
33
33
# Basic pagination
34
- c .all_organizations (page = 7 , per_page = 25 )
34
+ c .all_organizations (page = 7 , per_page = 25 , include_totals = False )
35
35
36
36
args , kwargs = mock_instance .get .call_args
37
37
38
38
self .assertEqual ('https://domain/api/v2/organizations' , args [0 ])
39
39
self .assertEqual (kwargs ['params' ], {'page' : 7 ,
40
- 'per_page' : 25 })
40
+ 'per_page' : 25 ,
41
+ 'include_totals' : 'false' ,
42
+ 'from' : None ,
43
+ 'take' : None })
41
44
42
45
# Checkpoint pagination
43
46
c .all_organizations (from_param = 8675309 , take = 75 )
@@ -199,13 +202,16 @@ def test_all_organization_members(self, mock_rc):
199
202
'take' : None })
200
203
201
204
# Specific pagination
202
- c .all_organization_members ('test-org' , page = 7 , per_page = 25 )
205
+ c .all_organization_members ('test-org' , page = 7 , per_page = 25 , include_totals = False )
203
206
204
207
args , kwargs = mock_instance .get .call_args
205
208
206
209
self .assertEqual ('https://domain/api/v2/organizations/test-org/members' , args [0 ])
207
210
self .assertEqual (kwargs ['params' ], {'page' : 7 ,
208
- 'per_page' : 25 })
211
+ 'per_page' : 25 ,
212
+ 'include_totals' : 'false' ,
213
+ 'from' : None ,
214
+ 'take' : None })
209
215
210
216
# Checkpoint pagination
211
217
c .all_organization_members ('test-org' , from_param = 8675309 , take = 75 )
0 commit comments