From 0dfc7574473b89ea107ae3640f91543a27d61610 Mon Sep 17 00:00:00 2001 From: Umair Khan Date: Mon, 8 Aug 2016 13:57:34 +0500 Subject: [PATCH] Annotate test_auth_backends.py. --- zerver/tests/test_auth_backends.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zerver/tests/test_auth_backends.py b/zerver/tests/test_auth_backends.py index 19a9b91b30..2a6bedf30f 100644 --- a/zerver/tests/test_auth_backends.py +++ b/zerver/tests/test_auth_backends.py @@ -192,7 +192,9 @@ class GitHubAuthBackendTest(AuthedTestCase): self.name) def test_github_backend_do_auth_for_default(self): + # type: () -> None def authenticate(*args, **kwargs): + # type: (*Any, **Any) -> None assert isinstance(kwargs['backend'], GithubOAuth2) == True with mock.patch('social.backends.github.GithubOAuth2.user_data', @@ -204,7 +206,9 @@ class GitHubAuthBackendTest(AuthedTestCase): self.backend.do_auth('fake-access-token', response=response) def test_github_backend_do_auth_for_team(self): + # type: () -> None def authenticate(*args, **kwargs): + # type: (*Any, **Any) -> None assert isinstance(kwargs['backend'], GithubTeamOAuth2) == True with mock.patch('social.backends.github.GithubTeamOAuth2.user_data', @@ -217,7 +221,9 @@ class GitHubAuthBackendTest(AuthedTestCase): self.backend.do_auth('fake-access-token', response=response) def test_github_backend_do_auth_for_org(self): + # type: () -> None def authenticate(*args, **kwargs): + # type: (*Any, **Any) -> None assert isinstance(kwargs['backend'], GithubOrganizationOAuth2) == True with mock.patch('social.backends.github.GithubOrganizationOAuth2.user_data',