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

Skip to content

Commit b55e607

Browse files
committed
tests: Update tests
1 parent 53bdc84 commit b55e607

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

auth0/v3/test/management/test_organizations.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ def test_all_organizations(self, mock_rc):
2525

2626
self.assertEqual('https://domain/api/v2/organizations', args[0])
2727
self.assertEqual(kwargs['params'], {'page': None,
28-
'per_page': None})
28+
'per_page': None,
29+
'include_totals': True,
30+
'from': None,
31+
'take': None})
2932

3033
# Basic pagination
3134
c.all_organizations(page=7, per_page=25)
@@ -191,7 +194,7 @@ def test_all_organization_members(self, mock_rc):
191194
self.assertEqual('https://domain/api/v2/organizations/test-org/members', args[0])
192195
self.assertEqual(kwargs['params'], {'page': None,
193196
'per_page': None,
194-
'include_totals': None,
197+
'include_totals': True,
195198
'from': None,
196199
'take': None})
197200

auth0/v3/test/management/test_roles.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,10 @@ def test_list_users(self, mock_rc):
123123
self.assertEqual('https://domain/api/v2/roles/an-id/users', args[0])
124124
self.assertEqual(kwargs['params'], {
125125
'from': 8675309,
126-
'take': 75
126+
'take': 75,
127+
'per_page': None,
128+
'page': None,
129+
'include_totals': True,
127130
})
128131

129132

0 commit comments

Comments
 (0)