File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -590,6 +590,17 @@ def test_acquire_token_device_flow(self):
590590 config ["scope" ] = ["user.read" ]
591591 self ._test_device_flow (** config )
592592
593+ def test_acquire_token_silent_with_an_empty_cache_should_return_none (self ):
594+ config = self .get_lab_user (
595+ usertype = "cloud" , azureenvironment = self .environment , publicClient = "no" )
596+ app = msal .ConfidentialClientApplication (
597+ config ['client_id' ], authority = config ['authority' ],
598+ http_client = MinimalHttpClient ())
599+ result = app .acquire_token_silent (scopes = config ['scope' ], account = None )
600+ self .assertEqual (result , None )
601+ # Note: An alias in this region is no longer accepting HTTPS traffic.
602+ # If this test case passes without exception,
603+ # it means MSAL Python is not affected by that.
593604
594605if __name__ == "__main__" :
595606 unittest .main ()
You can’t perform that action at this time.
0 commit comments