File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -110,10 +110,10 @@ def test_device_flow(self):
110110 CONFIG ["client_id" ], authority = CONFIG ["authority" ])
111111 flow = self .app .initiate_device_flow (scopes = CONFIG .get ("scope" ))
112112 assert "user_code" in flow , str (flow ) # Provision or policy might block DF
113- logging .warn (flow ["message" ])
113+ logging .warning (flow ["message" ])
114114
115115 duration = 30
116- logging .warn ("We will wait up to %d seconds for you to sign in" % duration )
116+ logging .warning ("We will wait up to %d seconds for you to sign in" % duration )
117117 flow ["expires_at" ] = time .time () + duration # Shorten the time for quick test
118118 result = self .app .acquire_token_by_device_flow (flow )
119119 self .assertLoosely (
@@ -136,7 +136,7 @@ def setUpClass(cls):
136136
137137 @unittest .skipUnless ("scope" in CONFIG , "Missing scope" )
138138 def test_auth_code (self ):
139- from oauth2cli .authcode import obtain_auth_code
139+ from msal . oauth2cli .authcode import obtain_auth_code
140140 port = CONFIG .get ("listen_port" , 44331 )
141141 redirect_uri = "http://localhost:%s" % port
142142 auth_request_uri = self .app .get_authorization_request_url (
You can’t perform that action at this time.
0 commit comments