MusicApp
MusicApp copied to clipboard
Jv/add comments likes
Description
Added likes and comments models. Implemented tests and added func for admins to delete comment.
References
Fixes # (issue)
Type of change
- [X] New feature (non-breaking change which adds functionality)
How Has This Been Tested?
- adding and removing of comments/likes checked manually by calling endpoints
- implemented tests
- remove comments on admin side not testes. Just created new method which calls already tested delete_data on Comments model.
Test Configuration:
- Firmware version: locally run mongoDB 6.0.1, with python version 3.9
- Os: MacOS Monterey 12.6
Checklist:
- [x] I have added a description of the change
- [X] My code follows the style guidelines of this project
- [X] I have performed a self-review of my own code
- [X] I have commented on my code, particularly in hard-to-understand areas
- [X] My changes generate no new warnings
- [X] I have added tests that prove my fix is effective or that my feature works
- [X] Any dependent changes have been merged and published in downstream modules
- [X] I have searched previous suggestions before making a new one, as mine may be a duplicate.
- [X] I acknowledge that all my contributions will be made under the project's license.