fix: Fixed new pylint warnings (#28724)

This commit is contained in:
Usama Sadiq
2021-09-23 17:54:04 +05:00
committed by GitHub
parent 32748788bf
commit 484cd536e2
21 changed files with 26 additions and 26 deletions

View File

@@ -40,7 +40,7 @@ class ThirdPartyAuthPermissionTest(TestCase):
def _create_request(self, auth_header=None):
url = '/'
extra = dict(HTTP_AUTHORIZATION=auth_header) if auth_header else dict()
extra = dict(HTTP_AUTHORIZATION=auth_header) if auth_header else {}
return RequestFactory().get(url, **extra)
def _create_session(self, request, user):