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

feat: Create test suite #37

Closed onerandomusername closed 3 years ago

onerandomusername commented 3 years ago

Relevant Issues

Closes #24

Description

Instantiate the bot in a test.

Edit:

codecov[bot] commented 3 years ago

Codecov Report

Merging #37 (41ec7fb) into main (6451400) will increase coverage by 91.51%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##            main      #37       +/-   ##
==========================================
+ Coverage   0.00%   91.51%   +91.51%     
==========================================
  Files          5        5               
  Lines        289      283        -6     
  Branches       0        7        +7     
==========================================
+ Hits           0      259      +259     
+ Misses       289       20      -269     
- Partials       0        4        +4     
Impacted Files Coverage Δ
modmail/bot.py 64.10% <100.00%> (+64.10%) :arrow_up:
modmail/__main__.py 50.00% <0.00%> (+50.00%) :arrow_up:
modmail/log.py 83.33% <0.00%> (+83.33%) :arrow_up:
modmail/config.py 98.99% <0.00%> (+98.99%) :arrow_up:
modmail/__init__.py 100.00% <0.00%> (+100.00%) :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 6451400...41ec7fb. Read the comment docs.

onerandomusername commented 3 years ago

Depends on #41

onerandomusername commented 3 years ago

Don't merge this yet, I still need to update the .codecov.yml file.

onerandomusername commented 3 years ago

Don't merge this yet, I still need to update the .codecov.yml file.

I'm considering it updated, if it needs to be updated further it will likely be in a new pr.

onerandomusername commented 3 years ago

Can you note that the test/docs.md file is autogenerated somewhere?

Where would I do this?

bast0006 commented 3 years ago

I noticed that there's some changes in there that should have been a part of delete website, but bleh. Best they happen here as they do pertain to tests.

onerandomusername commented 3 years ago

I noticed that there's some changes in there that should have been a part of delete website, but bleh. Best they happen here as they do pertain to tests.

There's a line in .gitattributes which also should have been removed with the website removal, but it still lives on.