Improved tests with mocked API responses (#442)

* Changed name of --top-probability parameter to --top-p.
* Fixed bug in --repl --shell when describing shell command.
This commit is contained in:
Farkhod Sadykov
2024-01-15 05:24:31 +01:00
committed by GitHub
parent 1281fa386c
commit b77b7d7c2f
12 changed files with 600 additions and 21 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ jobs:
run: ruff sgpt tests scripts
# - name: mypy
# run: mypy sgpt --exclude function.py --exclude handler.py --exclude default_functions
- name: unittests
- name: tests
run: |
export OPENAI_API_KEY=test_api_key
pytest tests/test_unit.py
pytest tests/ -p no:warnings