Cloud-CV / Cloud-CV/EvalAI

Add basic backend tests for challenges app

Open
#4,924 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2k
Forks
984
Avg merge
2h 54m
Merged PRs (30d)
14

Description

Description
The apps/challenges module contains core challenge-related logic (views, serializers, permissions), but currently does not have a dedicated tests directory.

Why this matters
Lack of automated tests makes it harder to prevent regressions in challenge creation, listing, and permission handling.

Proposed solution
Introduce a tests module under apps/challenges and add basic backend tests covering:
- Challenge list API access
- Permission checks (unauthenticated vs authenticated users)
- Basic serializer validation

Scope
Tests only. No functional changes.

Contributor guide

Open the contributing guide

Research direction

Start by inspecting the apps/challenges module, especially its views, serializers, and permissions, to identify the relevant API entry points and existing test conventions. Add a tests module covering challenge list access, unauthenticated versus authenticated permissions, and basic serializer validation. Done means these cases run successfully as backend tests without functional changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.