Skip to content

Commit 11163f1

Browse files
abhidnya13rayluo
authored andcommitted
Adding assert statement for verifying
1 parent 0ced4cb commit 11163f1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test_e2e.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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

594605
if __name__ == "__main__":
595606
unittest.main()

0 commit comments

Comments
 (0)