Skip to content

Commit ceae25b

Browse files
committed
adding issuer for some missing tests
1 parent b469535 commit ceae25b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/simulator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def __init__(self, number_of_tenants=1, tokens_per_tenant=1, cache_hit=False):
3131
with patch.object(msal.authority, "tenant_discovery", return_value={
3232
"authorization_endpoint": "https://contoso.com/placeholder",
3333
"token_endpoint": "https://contoso.com/placeholder",
34+
"issuer": "https://contoso.com/placeholder",
3435
}) as _: # Otherwise it would fail on OIDC discovery
3536
self.apps = [ # In MSAL Python, each CCA binds to one tenant only
3637
msal.ConfidentialClientApplication(

tests/test_account_source.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def _mock_post(url, headers=None, *args, **kwargs):
2626
@patch.object(msal.authority, "tenant_discovery", return_value={
2727
"authorization_endpoint": "https://contoso.com/placeholder",
2828
"token_endpoint": "https://contoso.com/placeholder",
29+
"issuer": "https://contoso.com/placeholder",
2930
}) # Otherwise it would fail on OIDC discovery
3031
class TestAccountSourceBehavior(unittest.TestCase):
3132

0 commit comments

Comments
 (0)