Description:
This issue is to audit and improve test coverage for important API endpoints and backend modules that currently lack sufficient test cases. Ensuring robust coverage will enhance EvalAI's reliability, make future changes safer, and reduce the likelihood of regressions.
Checklist:
Please check whether tests exist for each of the following, and if not, add them:
✅ API Endpoints
Auth & Accounts
Challenges
Jobs
✅ Backend Apps & Files
Models
Serializers
Views & Admin
Utilities & Celery Tasks
Expected Outcome:
- Identify all components above that lack tests.
- Add unit tests as appropriate.
- Ensure that new tests follow existing conventions.
- Verify increased coverage via
pytest --cov or Codecov integration (once available).
Description:
This issue is to audit and improve test coverage for important API endpoints and backend modules that currently lack sufficient test cases. Ensuring robust coverage will enhance EvalAI's reliability, make future changes safer, and reduce the likelihood of regressions.
Checklist:
Please check whether tests exist for each of the following, and if not, add them:
✅ API Endpoints
Auth & Accounts
POST /auth/register/POST /auth/login/GET /accounts/user/get_auth_tokenGET /accounts/user/refresh_auth_tokenPOST /auth/password/change/POST /accounts/user/resend_email_verification/Challenges
PUT /challenges/{challengeId}/manage_worker/{action}/GET /challenges/{challengeId}/request_approvalGET /challenges/{challengeId}/get_worker_logs/GET /challenges/challenge/{challengeId}/prizes/GET /challenges/challenge/{challengeId}/sponsors/POST /challenges/{challengeId}/participate/PUT /challenges/{challengeId}/scale_resources/GET /challenges/challenge/{challengeId}/get_participant_teamsPOST /challenges/challenge/{challengeId}/deregister/Jobs
GET /jobs/phase_split/{phaseSplitId}/public_leaderboard_all_entries/PATCH /jobs/challenges/{challengeId}/submissions/{submissionId}/update_submission_meta/✅ Backend Apps & Files
Models
apps/hosts/models.pyapps/jobs/models.pyapps/base/models.pyapps/participants/models.pyapps/accounts/models.pyapps/challenges/models.pySerializers
apps/challenges/serializers.pyapps/participants/serializers.pyapps/accounts/serializers.pyViews & Admin
apps/web/views.pyapps/challenges/admin.pyapps/web/admin.pyapps/participants/admin.pyapps/jobs/admin.pyapps/hosts/admin.pyUtilities & Celery Tasks
apps/base/utils.pyapps/jobs/utils.pyapps/jobs/tasks.pyapps/jobs/sender.pyapps/challenges/utils.pyapps/hosts/utils.pyapps/challenges/aws_utils.pyevalai/celery.pyExpected Outcome:
pytest --covor Codecov integration (once available).