anitab-org / anitab-org/anitab-forms-backend
Create unit tests for User info API
- Vorherrschende Sprache
- Python
- Sterne
- 17
- Forks
- 60
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
## Description
As a developer,
I need have unit tests for each functionality,
so that I can be confident when building a new feature, that there are no regression on the platform.
API: `GET /api/info`
The idea is to come with 3 unit tests to test this API. You may have to mock some information to properly test it.
**Resources:**
* Writing tests for Django projects: [resource 1](https://www.django-rest-framework.org/api-guide/testing/) and [resource 2](https://docs.djangoproject.com/en/3.1/topics/testing/tools/)
* Postman documentation about this specific API: https://documenter.getpostman.com/view/11324046/Szzoaw1q?version=latest#15ddb14a-9b28-4545-9b3d-6d363de4a8f1
## Acceptance Criteria
### Update [Required]
- [ ] Create 3 unit tests for `GET /api/info` API
## Definition of Done
- [ ] All of the required items are completed.
- [x] Approval by 1 mentor.
## Estimation
4 hours
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.