Skip to content

test : added unit tests for CommunityManager core methods - #1319

Open
tmdeveloper007 wants to merge 1 commit into
komalharshita:mainfrom
tmdeveloper007:#1314
Open

test : added unit tests for CommunityManager core methods#1319
tmdeveloper007 wants to merge 1 commit into
komalharshita:mainfrom
tmdeveloper007:#1314

Conversation

@tmdeveloper007

Copy link
Copy Markdown
Contributor

Summary of What Has Been Done

Added comprehensive pytest unit tests for CommunityManager in tests/test_community.py.

Changes Made

  • TestDiscussion: tests for create_discussion(), reply_to_discussion(), and reply count tracking
  • TestQuestions: tests for ask_question() and answer_question() with validation
  • TestStudyGroups: tests for create_study_group() and join_study_group() including idempotency
  • TestReputation: tests verifying reputation points are awarded correctly for each action type
  • TestUserContributions: tests for get_user_contributions() breakdown
  • TestTopContributors: tests for get_top_contributors() sorting and limit

Impact it Made

Ensures community features (discussions, Q&A, study groups, reputation) are reliable and regression-free.

Note: Please assign this PR to the tmdeveloper007 account.

Closes #1314

@vercel

vercel Bot commented Jul 24, 2026

Copy link
Copy Markdown

@tmdeveloper007 is attempting to deploy a commit to the komalsony234-1530's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test : add unit tests for CommunityManager core methods

1 participant