signebedi / gptty

ChatGPT wrapper in your TTY
MIT License
50 stars 7 forks source link

[tests] consider whether and how to test __main__.py and gptty.py #44

Open signebedi opened 1 year ago

signebedi commented 1 year ago

[tests] consider whether and how to test main.py and gptty.py Currently, we are testing a number of functions, but not testing main.py and gptty.py. These are mostly click interfaces and gptty-specific functions. Is it worth testing these? If so, how?

Originally posted by @signebedi in https://github.com/signebedi/gptty/issues/40#issuecomment-1489406735

signebedi commented 1 year ago

If we want to test these features, we'll need to add a OpenAI API key as a github actions secret, see https://docs.github.com/en/rest/actions/secrets. This will allow us to test the functionality of the actual completions.