fix: pylint errors resolved

This commit is contained in:
adeel.tajamul
2022-06-14 12:06:32 +05:00
parent b6b3a9153c
commit 19a23c7f35
2 changed files with 6 additions and 4 deletions

View File

@@ -126,13 +126,13 @@ class DiscussionAPIViewTestMixin(ForumsEnableMixin, CommentsServiceMockMixin, Ur
self.register_put_comment_response(cs_comment)
self.register_post_comment_response(cs_comment, thread_id="test_thread")
def test_not_authenticated(self, key="developer_message"):
def test_not_authenticated(self):
self.client.logout()
response = self.client.get(self.url)
self.assert_response_correct(
response,
401,
{key: "Authentication credentials were not provided."}
{"developer_message": "Authentication credentials were not provided."}
)
def test_inactive(self):
@@ -1481,8 +1481,8 @@ class LearnerThreadViewAPITest(DiscussionAPIViewTestMixin, ModuleStoreTestCase):
response = self.client.get(self.url)
assert response.status_code == 400
def test_not_authenticated(self, key="detail"):
super().test_not_authenticated(key=key)
def test_not_authenticated(self):
pass
@ddt.ddt

View File

@@ -568,6 +568,8 @@ class LearnerThreadView(APIView):
**GET Thread List Parameters**:
* user_id: (Required) (Integer) ID of the user whose active threads are required
* page: The (1-indexed) page to retrieve (default is 1)
* page_size: The number of items per page (default is 10)