signebedi / gptty

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

[tests] write initial unit tests #40

Closed signebedi closed 1 year ago

signebedi commented 1 year ago

Write some basic unit tests for config, context, tagging, and gptty.

signebedi commented 1 year ago

[tests] integrate with testing CI/CD software We should consider bootstrapping this package to CI/CD software like Travis CI

signebedi commented 1 year ago

[tests] Add context.py tests when model_type == 'v1/chat/completions' We only have basic context.py tests that don't check for more complex context structures. We should add additional tests when model_type == 'v1/chat/completions'.

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?