Skip to content

Commit

Permalink
chore: resolved pylint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
BilalQamar95 committed Oct 23, 2024
1 parent f72e157 commit e679e66
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion learning_assistant/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def get_block_content(request, user_id, course_id, unit_usage_key):

return cache_data['content_length'], cache_data['content_items']


# pylint: disable=too-many-positional-arguments)
def render_prompt_template(request, user_id, course_run_id, unit_usage_key, course_id, template_string):
"""
Return a rendered prompt template.
Expand Down
2 changes: 1 addition & 1 deletion learning_assistant/text_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def cleanup_text(text):
return stripped


class _HTMLToTextHelper(HTMLParser): # lint-amnesty, pylint: disable=abstract-method
class _HTMLToTextHelper(HTMLParser):
"""
Helper function for html_to_text below.
"""
Expand Down
1 change: 1 addition & 0 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ def setUp(self):
)
@ddt.unpack
@patch('learning_assistant.api.learning_assistant_available')
# pylint: disable=too-many-positional-arguments)
def test_learning_assistant_enabled(
self,
obj_exists,
Expand Down
1 change: 1 addition & 0 deletions tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ def test_invalid_messages(self, mock_role, mock_waffle, mock_render):
@patch('learning_assistant.views.CourseEnrollment.get_enrollment')
@patch('learning_assistant.views.CourseMode')
@override_settings(LEARNING_ASSISTANT_PROMPT_TEMPLATE='This is the default template')
# pylint: disable=too-many-positional-arguments)
def test_chat_response_default(
self, mock_mode, mock_enrollment, mock_role, mock_waffle, mock_chat_response, mock_render
):
Expand Down

0 comments on commit e679e66

Please sign in to comment.