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

Skip to content

Commit 876ab3c

Browse files
committed
tests: Updates to tests
1 parent 1a458ad commit 876ab3c

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

auth0/v3/test/management/test_organizations.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,10 @@ def test_all_organization_members(self, mock_rc):
190190

191191
self.assertEqual('https://domain/api/v2/organizations/test-org/members', args[0])
192192
self.assertEqual(kwargs['params'], {'page': None,
193-
'per_page': None})
193+
'per_page': None,
194+
'include_totals': None,
195+
'from': None,
196+
'take': None})
194197

195198
# Specific pagination
196199
c.all_organization_members('test-org', page=7, per_page=25)
@@ -248,7 +251,10 @@ def test_all_organization_member_roles(self, mock_rc):
248251

249252
self.assertEqual('https://domain/api/v2/organizations/test-org/members/test-user/roles', args[0])
250253
self.assertEqual(kwargs['params'], {'page': None,
251-
'per_page': None})
254+
'per_page': None
255+
'include_totals': None,
256+
'from': None,
257+
'take': None})
252258

253259
# Specific pagination
254260
c.all_organization_member_roles('test-org', 'test-user', page=7, per_page=25)

auth0/v3/test/management/test_roles.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ def test_list_users(self, mock_rc):
9898
self.assertEqual(kwargs['params'], {
9999
'per_page': 25,
100100
'page': 0,
101-
'include_totals': 'true'
101+
'include_totals': 'true',
102+
'from': None,
103+
'take': None
102104
})
103105

104106
u.list_users(id='an-id', page=1, per_page=50, include_totals=False)

0 commit comments

Comments
 (0)