Skip to content

Commit 9de3efa

Browse files
committed
Adding 1 manual test case and 1 placeholder
1 parent 8b1bbcd commit 9de3efa

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/test_wam.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,15 @@ def test_unconfigured_app_should_raise_exception(self):
3030
_signin_interactively(self._authority, client_id, self._scopes)
3131
# Note: _acquire_token_silently() would raise same exception,
3232
# we skip its test here due to the lack of a valid account_id
33+
34+
def test_login_hint(self):
35+
pass # TODO
36+
37+
def test_signin_interactively_and_select_account(self):
38+
client_id = "26a7ee05-5602-4d76-a7ba-eae8b7b67941" # A pre-configured test app
39+
print("An account picker UI will pop up. See whether the auth result matches your account")
40+
result = _signin_interactively(
41+
self._authority, client_id, self._scopes, prompt="select_account")
42+
self.assertIsNotNone(result.get("access_token"), result)
43+
import pprint; pprint.pprint(result)
44+

0 commit comments

Comments
 (0)