ItsDrike / CommandBot

Discord Bot which can handle most administrative tasks for servers.
Other
0 stars 0 forks source link

Add Unit Tests #16

Closed ItsDrike closed 4 years ago

ItsDrike commented 4 years ago

Unit Testing should be a part of every project, that includes this one. It will make it a lot easier to find mistakes and fix them.

Unit Testing must include a custom module that will include most of the custom discord.py classes so that they can simply be used by importing them, as most of the functions which will have to be tested will require these values. A sensible way to do this would be to use unittest.mock