Skip to content

Commit 1f0028a

Browse files
committed
Fix py2 tests
1 parent ecaf8c9 commit 1f0028a

1 file changed

Lines changed: 3 additions & 14 deletions

File tree

auth0/v3/test/management/test_auth0.py

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import unittest
22

3-
import mock
4-
53
from ...management.actions import Actions
64
from ...management.attack_protection import AttackProtection
75
from ...management.auth0 import Auth0
@@ -124,16 +122,7 @@ def test_users_by_email(self):
124122
def test_users(self):
125123
self.assertIsInstance(self.a0.users, Users)
126124

127-
@mock.patch("auth0.v3.management.users.Users.__init__")
128-
def test_args(self, users):
129-
users.return_value = None
125+
def test_args(self):
130126
rest_options = RestClientOptions(retries=99)
131-
Auth0(self.domain, self.token, rest_options=rest_options)
132-
users.assert_called_with(
133-
"user.some.domain",
134-
"a-token",
135-
True,
136-
5.0,
137-
"https",
138-
rest_options,
139-
)
127+
auth0 = Auth0(self.domain, self.token, rest_options=rest_options)
128+
self.assertEqual(auth0.users.client.options.retries, 99)

0 commit comments

Comments
 (0)