📝 Add docstrings to test_mentorship_backend#3237
Closed
coderabbitai[bot] wants to merge 1 commit intomainfrom
Closed
📝 Add docstrings to test_mentorship_backend#3237coderabbitai[bot] wants to merge 1 commit intomainfrom
test_mentorship_backend#3237coderabbitai[bot] wants to merge 1 commit intomainfrom
Conversation
Docstrings generation was requested by @kart-u. * #3179 (comment) The following files were modified: * `backend/apps/mentorship/api/internal/nodes/mentee.py` * `backend/tests/apps/mentorship/api/internal/nodes/test_api_internal_mentor.py` * `backend/tests/apps/mentorship/api/internal/nodes/test_api_internal_module.py` * `backend/tests/apps/mentorship/api/internal/nodes/test_api_internal_program.py` * `backend/tests/apps/mentorship/api/internal/queries/test_api_queries_mentorship.py` * `backend/tests/apps/mentorship/api/internal/queries/test_api_queries_program.py` * `backend/tests/apps/mentorship/management/commands/test_mentorship_sync_issue_levels.py` * `backend/tests/apps/mentorship/management/commands/test_mentorship_sync_module_issues.py` * `backend/tests/apps/mentorship/management/commands/test_mentorship_update_comments.py` * `backend/tests/apps/mentorship/model/test_module.py`
3 tasks
Contributor
Author
|
Important Review skippedCodeRabbit bot authored PR detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
|
|
|
||
| mock_issue_user_interest.objects.filter.return_value.values_list.return_value = [] | ||
|
|
||
| mock_issue_user_interest.side_effect = lambda **kwargs: SimpleNamespace(**kwargs) |
| mock_issue_user_interest.objects.filter.return_value.values_list.return_value = [1] | ||
| mock_issue_user_interest.objects.filter.return_value.delete.return_value = (1, {}) | ||
|
|
||
| mock_issue_user_interest.side_effect = lambda **kwargs: SimpleNamespace(**kwargs) |
| mock_issue_user_interest.objects.filter.return_value.values_list.return_value = [1] | ||
| mock_issue_user_interest.objects.filter.return_value.delete.return_value = (1, {}) | ||
|
|
||
| mock_issue_user_interest.side_effect = lambda **kwargs: SimpleNamespace(**kwargs) |
|
|
||
| mock_issue_user_interest.objects.filter.return_value.values_list.return_value = [] | ||
|
|
||
| mock_issue_user_interest.side_effect = lambda **kwargs: SimpleNamespace(**kwargs) |
| mock_issue_user_interest.objects.filter.return_value.values_list.return_value = [1] | ||
| mock_issue_user_interest.objects.filter.return_value.delete.return_value = (1, {}) | ||
|
|
||
| mock_issue_user_interest.side_effect = lambda **kwargs: SimpleNamespace(**kwargs) |
| from apps.github.models import User as GithubUser | ||
| from apps.mentorship.api.internal.nodes.mentee import MenteeNode | ||
| from apps.mentorship.api.internal.queries.mentorship import MentorshipQuery | ||
| from apps.mentorship.models import Mentee, MenteeModule, Module, Mentor |
| from django.core.exceptions import ObjectDoesNotExist | ||
|
|
||
| from apps.github.models import User as GithubUser | ||
| from apps.mentorship.api.internal.nodes.program import PaginatedPrograms, ProgramNode |
| import pytest | ||
| from unittest.mock import MagicMock, patch | ||
| from types import SimpleNamespace | ||
| from datetime import datetime |
| from unittest.mock import MagicMock, patch | ||
| from types import SimpleNamespace | ||
| from datetime import datetime | ||
| import datetime as dt |
| from datetime import datetime | ||
| import datetime as dt | ||
|
|
||
| from apps.mentorship.management.commands.mentorship_update_comments import Command, INTEREST_PATTERNS |
Contributor
|
@coderabbitai help |
Contributor
Author
ChatThere are 3 ways to chat with CodeRabbit:
CodeRabbit commands
Other keywords and placeholders
Status, support, documentation and community
|
Contributor
|
@arkid15r can you please close this PR this was raised by mistake |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Docstrings generation was requested by @kart-u.
The following files were modified:
backend/apps/mentorship/api/internal/nodes/mentee.pybackend/tests/apps/mentorship/api/internal/nodes/test_api_internal_mentor.pybackend/tests/apps/mentorship/api/internal/nodes/test_api_internal_module.pybackend/tests/apps/mentorship/api/internal/nodes/test_api_internal_program.pybackend/tests/apps/mentorship/api/internal/queries/test_api_queries_mentorship.pybackend/tests/apps/mentorship/api/internal/queries/test_api_queries_program.pybackend/tests/apps/mentorship/management/commands/test_mentorship_sync_issue_levels.pybackend/tests/apps/mentorship/management/commands/test_mentorship_sync_module_issues.pybackend/tests/apps/mentorship/management/commands/test_mentorship_update_comments.pybackend/tests/apps/mentorship/model/test_module.pyThese files were kept as they were
backend/tests/apps/mentorship/api/internal/nodes/test_api_internal_enum.pybackend/tests/apps/mentorship/api/internal/nodes/test_api_internal_mentee.pybackend/tests/apps/mentorship/api/internal/queries/test_api_queries_module.pybackend/tests/apps/mentorship/model/test_experience_level.pybackend/tests/apps/mentorship/model/test_mentee.pybackend/tests/apps/mentorship/model/test_mentor.pybackend/tests/apps/mentorship/model/test_mentor_module.pybackend/tests/apps/mentorship/model/test_program.pybackend/tests/apps/mentorship/model/test_start_end_range.pybackend/tests/apps/mentorship/model/test_task.pybackend/tests/apps/mentorship/model/test_task_level.pyThese file types are not supported
backend/pyproject.tomlℹ️ Note