activist
activist copied to clipboard
Implement groups api testing
Terms
- [X] I have searched open and closed feature requests
- [X] I agree to follow activist's Code of Conduct
Description
Something that's needed to make sure that the test coverage is maintained for the backend is tests for the groups models. These could generally follow the example tests sent along in #824 and would be written in backend/entities/tests.py.
Contribution
Happy to answer questions or help implement as I can! 😊
CC @thiagogquinto, @to-sta and I were thinking this would be a good next issue to look into as he needed to take over #801 :) Let us know if this'd be something that'd interest you!
@andrewtavis I would like to take on this task if it’s not currently assigned. In the activist/backend/entities/models.py file, we have multiple group models, including Group, GroupEvent, GroupImage, GroupMember, GroupText, GroupResource, and GroupTopic. Writing tests for all these models in a single backend/entities/tests.py file would make the file quite large and complex. Would it be possible to create separate test files for each model, with a single file to run all the tests? This approach would be similar to what we implemented in #990.