CSC510-Group-25 / ClassMateBot

This project helps to improve the life of students, TAs and teachers by automating many mundane tasks which are sometimes done manually on Discord. This is release version 3 of the ClassMateBot.
MIT License
0 stars 5 forks source link

Q&A tests (SEE RENAMED BRANCH) #75

Closed snapcat closed 2 years ago

snapcat commented 2 years ago

Summary

~This PR will marked as ready for review when coverage for qanda.py is at least 75%.~

~Coverage for qanda.py is at 84%!~ Coverage for qanda.py is at 89%!

Added additional qanda.py tests to test_bot.py

asking questions: see commit answering questions: see commit placeholder tests: see commit

Changed Files

test_bot.py

New tests: see commit

New tests: see commit

As of now, there is no way (to my knowledge!) of verifying the results of the last two tests since the bot locates and edits the messages.

New test: see commit

Placeholder monkey tests (as comments):

Checklist

I tested my tests locally!


Closing Issues

Resolves #70

Bugs, Notes

#### Contributors @snapcat
codecov-commenter commented 2 years ago

Codecov Report

Merging #75 (4c0ff11) into main (0cc4feb) will increase coverage by 6.62%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #75      +/-   ##
==========================================
+ Coverage   72.97%   79.60%   +6.62%     
==========================================
  Files          11       11              
  Lines         729      755      +26     
==========================================
+ Hits          532      601      +69     
+ Misses        197      154      -43     
Impacted Files Coverage Δ
test/test_bot.py 98.43% <100.00%> (+0.24%) :arrow_up:
cogs/qanda.py 88.75% <0.00%> (+53.75%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 0cc4feb...4c0ff11. Read the comment docs.