Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 626702a

Browse files
committed
tests: Update tests
1 parent cdd5a6b commit 626702a

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

auth0/v3/test/management/test_organizations.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,16 @@ def test_all_organizations(self, mock_rc):
3131
'take': None})
3232

3333
# Basic pagination
34-
c.all_organizations(page=7, per_page=25)
34+
c.all_organizations(page=7, per_page=25, include_totals=False)
3535

3636
args, kwargs = mock_instance.get.call_args
3737

3838
self.assertEqual('https://domain/api/v2/organizations', args[0])
3939
self.assertEqual(kwargs['params'], {'page': 7,
40-
'per_page': 25})
40+
'per_page': 25,
41+
'include_totals': 'false',
42+
'from': None,
43+
'take': None})
4144

4245
# Checkpoint pagination
4346
c.all_organizations(from_param=8675309, take=75)
@@ -199,13 +202,16 @@ def test_all_organization_members(self, mock_rc):
199202
'take': None})
200203

201204
# 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)
203206

204207
args, kwargs = mock_instance.get.call_args
205208

206209
self.assertEqual('https://domain/api/v2/organizations/test-org/members', args[0])
207210
self.assertEqual(kwargs['params'], {'page': 7,
208-
'per_page': 25})
211+
'per_page': 25,
212+
'include_totals': 'false',
213+
'from': None,
214+
'take': None})
209215

210216
# Checkpoint pagination
211217
c.all_organization_members('test-org', from_param=8675309, take=75)

0 commit comments

Comments
 (0)