SocksTheWolf / AntiScamBot

A Discord bot that shares ban lists of scammers across multiple Discord servers
https://scamguard.app/
MIT License
6 stars 3 forks source link

Avaankha/pytest #44

Open avaankha opened 1 year ago

avaankha commented 1 year ago

Closes #19 Automated tests using pytest and mocks/patching. Tests assert that PrepareBan/Unban return the correct enum given the test setup and that the specific guild.ban(user, reason) & guild.unban(user, reason) are called with the correct parameters. A test case for server activation has also been created.