File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import unittest
22
3- import mock
4-
53from ...management .actions import Actions
64from ...management .attack_protection import AttackProtection
75from ...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 )
You can’t perform that action at this time.
0 commit comments