anitab-org / anitab-org/mentorship-backend

Change Test Structure for app/api/dao/task_comment.py

Ouverte
#553 5 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Category: Coding Type: Testing
Langage dominant
Python
Étoiles
200
Forks
449
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

## Description
I want to change the structure of the /tests/task_comments/test_dao.py tests so as to follow the test structure of the rest of the tests in the project.
The link to this file is this:
https://github.com/anitab-org/mentorship-backend/blob/develop/tests/task_comments/test_dao.py

Each method should be tested in a specific class with different methods testing each test case. For example, the file for testing the method delete_comment should be named tests_dao_task_comment_delete_comment.

## Test Cases
The required test cases addressed for this issue are already implemented but should be structured in a different way mentioned in the description.

## Definition of Done
- [ ] All related test cases structured differently should be passing.
- [ ] Approval by 1 mentor.

## Estimation
2 hours

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.