Skip to content

Fix typo in test names (warnning → warning) #588

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 10, 2023
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