Zero6992 / chatGPT-discord-bot

Integrate ChatGPT into your own discord bot
GNU General Public License v2.0
2.6k stars 699 forks source link

Adding unittests for `main.py` and `aclient.py` #417

Open Sheng08 opened 1 year ago

Sheng08 commented 1 year ago

Dear Maintainer,

I have just submitted a new Pull Request, which includes unit tests for main.py and aclient.py to verify that the functions of our project are running properly.

These two unit tests (MainTest.py and AclientTest.py) cover all functions and methods within main.py and aclient.py, comprising a total of 40 tests to ensure that these functions and methods can operate correctly under various conditions.

These tests have passed in my local environment, confirming a code coverage of 100% and verifying that each function has a corresponding test case.

If you have any questions about this Pull Request, please let me know at any time. I would be more than happy to provide more information or make any necessary modifications.

I hope these unit tests will be helpful to our project.

I look forward to your review and response.

Best regards, Sheng08