theAbdoSabbagh / UnlimitedGPT

An unofficial Python wrapper for OpenAI's ChatGPT API
https://pypi.org/project/UnlimitedGPT/
GNU General Public License v3.0
346 stars 43 forks source link

Add tests #10

Closed Uranium2 closed 1 year ago

Uranium2 commented 1 year ago

Add tests for testing the global usage of the package.

Might lack of asserting, but if method don't work, usually the code will raise an error.

you have to install python-dotenv and pytest. renamme template.env to .env and replace the values with 2 tokens.

pytest ./tests
Uranium2 commented 1 year ago

Lot of code changed because I used black and isort (--profile=black) on the code

theAbdoSabbagh commented 1 year ago

Thanks for the PR, I'll review the changes soon!

theAbdoSabbagh commented 1 year ago

Thanks for the PR! Merging now :)