Closed Swiddis closed 5 months ago
Attention: 9 lines
in your changes are missing coverage. Please review.
Comparison is base (
d725946
) 80.74% compared to head (0f99e43
) 90.72%. Report is 2 commits behind head on dev.
Files | Patch % | Lines |
---|---|---|
src/word_debt_bot/main.py | 60.00% | 6 Missing :warning: |
src/word_debt_bot/cogs/cmd_err_handler.py | 84.21% | 3 Missing :warning: |
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Still haven't found much of a better system for the error tests, but the existing integration test framework does work with minimal modification (you still need to catch the correct error, but it still logs messages and manually running the bot verifies the errors aren't being logged). Will probably just keep using that in the future.
As part of reaching a personal goal of having 90%+ coverage, this PR adds unit tests for the bulk of the code in
main
, as well as some further tests for the new error cog, which together account for 40/63 missed lines. Also using this as an excuse to get some other refactoring work in.Closes #34
Steps to complete: