File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,17 +20,17 @@ def test_update_factor(self, mock_rc):
20
20
mock_instance = mock_rc .return_value
21
21
22
22
g = Guardian (domain = 'domain' , token = 'jwttoken' )
23
- g .update_factor ('push-notification' , { 'enabled' : 'true' })
23
+ g .update_factor ('push-notification' , { 'enabled' : True })
24
24
25
25
args , kwargs = mock_instance .put .call_args
26
26
self .assertEqual ('https://domain/api/v2/guardian/factors/push-notification' , args [0 ])
27
- self .assertEqual (kwargs ['data' ], {'enabled' :'true' })
27
+ self .assertEqual (kwargs ['data' ], {'enabled' : True })
28
28
29
- g .update_factor ('sms' , {'enabled' : 'false' })
29
+ g .update_factor ('sms' , {'enabled' : False })
30
30
31
31
args , kwargs = mock_instance .put .call_args
32
32
self .assertEqual ('https://domain/api/v2/guardian/factors/sms' , args [0 ])
33
- self .assertEqual (kwargs ['data' ], {'enabled' :'false' })
33
+ self .assertEqual (kwargs ['data' ], {'enabled' : False })
34
34
35
35
@mock .patch ('auth0.v2.management.guardian.RestClient' )
36
36
def test_update_templates (self , mock_rc ):
You can’t perform that action at this time.
0 commit comments