[FIX] website_slides : fix and add tests on karma gain
Fix karma channel completion computing and karma gain : set to complete only if not completed and handle eventual multi course completion Removes unused karma gain rules. Add karma unvote rule to loose the karma gained if user changes his mind. Test karma gain on each users. Note : technically, public user could be member of a course, but functionally speaking, this case should and could never happen (it's a non sens anyway) -> public user has not been tested for this reason. Task ID : 1943788 Closes PR #31321
Showing
- addons/website_slides/models/slide_channel.py 13 additions, 7 deletionsaddons/website_slides/models/slide_channel.py
- addons/website_slides/models/slide_slide.py 7 additions, 2 deletionsaddons/website_slides/models/slide_slide.py
- addons/website_slides/tests/__init__.py 1 addition, 0 deletionsaddons/website_slides/tests/__init__.py
- addons/website_slides/tests/test_karma.py 93 additions, 0 deletionsaddons/website_slides/tests/test_karma.py
addons/website_slides/tests/test_karma.py
0 → 100644
Please register or sign in to comment