Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions tests/test_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ def test_get_accounts(self):
sys.version_info[0] >= 3 and sys.version_info[1] >= 2,
"assertWarns() is only available in Python 3.2+")
class TestClientCredentialGrant(unittest.TestCase):
def _test_certain_authority_should_emit_warnning(self, authority):
def _test_certain_authority_should_emit_warning(self, authority):
app = ConfidentialClientApplication(
"client_id", client_credential="secret", authority=authority)
def mock_post(url, headers=None, *args, **kwargs):
Expand All @@ -636,12 +636,12 @@ def mock_post(url, headers=None, *args, **kwargs):
with self.assertWarns(DeprecationWarning):
app.acquire_token_for_client(["scope"], post=mock_post)

def test_common_authority_should_emit_warnning(self):
self._test_certain_authority_should_emit_warnning(
def test_common_authority_should_emit_warning(self):
self._test_certain_authority_should_emit_warning(
authority="https://login.microsoftonline.com/common")

def test_organizations_authority_should_emit_warnning(self):
self._test_certain_authority_should_emit_warnning(
def test_organizations_authority_should_emit_warning(self):
self._test_certain_authority_should_emit_warning(
authority="https://login.microsoftonline.com/organizations")


Expand Down