Skip to content
Snippets Groups Projects
Commit cb8e6874 authored by stvn's avatar stvn
Browse files

style(pylint): remove superfluous pylint: disable directives

parent aae0ee3d
Branches
No related tags found
No related merge requests found
...@@ -332,19 +332,19 @@ class LtiConfiguration(models.Model): ...@@ -332,19 +332,19 @@ class LtiConfiguration(models.Model):
@property @property
def pii_share_username(self): def pii_share_username(self):
return self.lti_config.get('pii_share_username', False) # pylint: disable=no-member return self.lti_config.get('pii_share_username', False)
@pii_share_username.setter @pii_share_username.setter
def pii_share_username(self, value): def pii_share_username(self, value):
self.lti_config['pii_share_username'] = value # pylint: disable=unsupported-assignment-operation self.lti_config['pii_share_username'] = value
@property @property
def pii_share_email(self): def pii_share_email(self):
return self.lti_config.get('pii_share_email', False) # pylint: disable=no-member return self.lti_config.get('pii_share_email', False)
@pii_share_email.setter @pii_share_email.setter
def pii_share_email(self, value): def pii_share_email(self, value):
self.lti_config['pii_share_email'] = value # pylint: disable=unsupported-assignment-operation self.lti_config['pii_share_email'] = value
def __str__(self): def __str__(self):
return f"[{self.config_store}] {self.version} - {self.location}" return f"[{self.config_store}] {self.version} - {self.location}"
......
...@@ -88,7 +88,6 @@ class LtiAgsLineItemViewSetTestCase(APITransactionTestCase): ...@@ -88,7 +88,6 @@ class LtiAgsLineItemViewSetTestCase(APITransactionTestCase):
"iss": "https://example.com", "iss": "https://example.com",
"scopes": scopes, "scopes": scopes,
}) })
# pylint: disable=no-member
self.client.credentials( self.client.credentials(
HTTP_AUTHORIZATION=f"Bearer {token}" HTTP_AUTHORIZATION=f"Bearer {token}"
) )
...@@ -123,7 +122,7 @@ class LtiAgsViewSetTokenTests(LtiAgsLineItemViewSetTestCase): ...@@ -123,7 +122,7 @@ class LtiAgsViewSetTokenTests(LtiAgsLineItemViewSetTestCase):
""" """
Test the LTI AGS list view when there's an invalid token. Test the LTI AGS list view when there's an invalid token.
""" """
self.client.credentials(HTTP_AUTHORIZATION=authorization) # pylint: disable=no-member self.client.credentials(HTTP_AUTHORIZATION=authorization)
response = self.client.get(self.lineitem_endpoint) response = self.client.get(self.lineitem_endpoint)
self.assertEqual(response.status_code, 403) self.assertEqual(response.status_code, 403)
......
...@@ -181,7 +181,6 @@ class LtiNrpsTestCase(APITransactionTestCase): ...@@ -181,7 +181,6 @@ class LtiNrpsTestCase(APITransactionTestCase):
"iss": "https://example.com", "iss": "https://example.com",
"scopes": scopes, "scopes": scopes,
}) })
# pylint: disable=no-member
self.client.credentials( self.client.credentials(
HTTP_AUTHORIZATION="Bearer {}".format(token) HTTP_AUTHORIZATION="Bearer {}".format(token)
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment