discord-modmail / modmail

A Modmail bot for Discord. Allowing safe moderator conversations with server members one server at a time.
https://discord-modmail.readthedocs.io/
MIT License
15 stars 8 forks source link

tests/test error handler #94

Closed onerandomusername closed 2 years ago

onerandomusername commented 2 years ago

tests 99% of the error handler to ensure that all errors are handled properly and don't raise more errors.

codecov[bot] commented 2 years ago

Codecov Report

Merging #94 (6935988) into main (4b07917) will increase coverage by 6.60%. The diff coverage is 97.95%.

:exclamation: Current head 6935988 differs from pull request most recent head 09472f3. Consider uploading reports for the commit 09472f3 to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #94      +/-   ##
==========================================
+ Coverage   70.90%   77.51%   +6.60%     
==========================================
  Files          33       33              
  Lines        1619     1739     +120     
  Branches      199      222      +23     
==========================================
+ Hits         1148     1348     +200     
+ Misses        439      357      -82     
- Partials       32       34       +2     
Impacted Files Coverage Δ
modmail/extensions/utils/error_handler.py 96.87% <95.00%> (+66.22%) :arrow_up:
...sts/modmail/extensions/utils/test_error_handler.py 98.74% <98.42%> (-1.26%) :arrow_down:

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 0c4e1c2...09472f3. Read the comment docs.

coveralls commented 2 years ago

Coverage Status

Coverage increased (+3.4%) to 73.349% when pulling 09472f383701c24b1c7ed0ef481328f21669fdec on tests/test-error-handler into 0c4e1c22c3584fcd9c9e3809cbd38a7756fa1972 on main.