activist icon indicating copy to clipboard operation
activist copied to clipboard

Implement groups api testing

Open andrewtavis opened this issue 1 year ago • 1 comments
trafficstars

Terms

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! 😊

andrewtavis avatar Apr 20 '24 20:04 andrewtavis

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 avatar Apr 20 '24 20:04 andrewtavis

@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.

zeus2611 avatar Oct 24 '24 08:10 zeus2611