@@ -22,7 +22,6 @@ def get_private_key():
2222class TestGetToken (unittest .TestCase ):
2323 @mock .patch ("auth0.rest.RestClient.post" )
2424 def test_authorization_code (self , mock_post ):
25-
2625 g = GetToken ("my.domain.com" , "cid" , client_secret = "clsec" )
2726
2827 g .authorization_code (
@@ -47,7 +46,6 @@ def test_authorization_code(self, mock_post):
4746
4847 @mock .patch ("auth0.rest.RestClient.post" )
4948 def test_authorization_code_with_client_assertion (self , mock_post ):
50-
5149 g = GetToken (
5250 "my.domain.com" , "cid" , client_assertion_signing_key = get_private_key ()
5351 )
@@ -71,7 +69,6 @@ def test_authorization_code_with_client_assertion(self, mock_post):
7169
7270 @mock .patch ("auth0.rest.RestClient.post" )
7371 def test_authorization_code_pkce (self , mock_post ):
74-
7572 g = GetToken ("my.domain.com" , "cid" )
7673
7774 g .authorization_code_pkce (
@@ -97,7 +94,6 @@ def test_authorization_code_pkce(self, mock_post):
9794
9895 @mock .patch ("auth0.rest.RestClient.post" )
9996 def test_client_credentials (self , mock_post ):
100-
10197 g = GetToken ("my.domain.com" , "cid" , client_secret = "clsec" )
10298
10399 g .client_credentials (audience = "aud" , grant_type = "gt" )
@@ -139,7 +135,6 @@ def test_client_credentials_with_client_assertion(self, mock_post):
139135
140136 @mock .patch ("auth0.rest.RestClient.post" )
141137 def test_login (self , mock_post ):
142-
143138 g = GetToken ("my.domain.com" , "cid" , client_secret = "clsec" )
144139
145140 g .login (
@@ -194,7 +189,6 @@ def test_refresh_token(self, mock_post):
194189
195190 @mock .patch ("auth0.rest.RestClient.post" )
196191 def test_passwordless_login_with_sms (self , mock_post ):
197-
198192 g = GetToken ("my.domain.com" , "cid" , client_secret = "csec" )
199193
200194 g .passwordless_login (
0 commit comments