]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
server : replace behave with pytest (#10416)
authorXuan Son Nguyen <redacted>
Tue, 26 Nov 2024 15:20:18 +0000 (16:20 +0100)
committerGitHub <redacted>
Tue, 26 Nov 2024 15:20:18 +0000 (16:20 +0100)
commit45abe0f74ee281aea6e5283c1e738061256cfcae
tree54b4f84e9319e9319a8eef9979f51c3f69a278d4
parent0bbd2262a3263f37385297b30de37941836e57f7
server : replace behave with pytest (#10416)

* server : replace behave with pytest

* fix test on windows

* misc

* add more tests

* more tests

* styling

* log less, fix embd test

* added all sequential tests

* fix coding style

* fix save slot test

* add parallel completion test

* fix parallel test

* remove feature files

* update test docs

* no cache_prompt for some tests

* add test_cache_vs_nocache_prompt
34 files changed:
.devops/nix/python-scripts.nix
.github/workflows/server.yml
examples/server/tests/.gitignore
examples/server/tests/README.md
examples/server/tests/conftest.py [new file with mode: 0644]
examples/server/tests/features/ctx_shift.feature [deleted file]
examples/server/tests/features/embeddings.feature [deleted file]
examples/server/tests/features/environment.py [deleted file]
examples/server/tests/features/infill.feature [deleted file]
examples/server/tests/features/issues.feature [deleted file]
examples/server/tests/features/lora.feature [deleted file]
examples/server/tests/features/parallel.feature [deleted file]
examples/server/tests/features/passkey.feature [deleted file]
examples/server/tests/features/rerank.feature [deleted file]
examples/server/tests/features/results.feature [deleted file]
examples/server/tests/features/security.feature [deleted file]
examples/server/tests/features/server.feature [deleted file]
examples/server/tests/features/slotsave.feature [deleted file]
examples/server/tests/features/steps/steps.py [deleted file]
examples/server/tests/features/wrong_usages.feature [deleted file]
examples/server/tests/requirements.txt
examples/server/tests/tests.sh
examples/server/tests/unit/test_basic.py [new file with mode: 0644]
examples/server/tests/unit/test_chat_completion.py [new file with mode: 0644]
examples/server/tests/unit/test_completion.py [new file with mode: 0644]
examples/server/tests/unit/test_ctx_shift.py [new file with mode: 0644]
examples/server/tests/unit/test_embedding.py [new file with mode: 0644]
examples/server/tests/unit/test_infill.py [new file with mode: 0644]
examples/server/tests/unit/test_lora.py [new file with mode: 0644]
examples/server/tests/unit/test_rerank.py [new file with mode: 0644]
examples/server/tests/unit/test_security.py [new file with mode: 0644]
examples/server/tests/unit/test_slot_save.py [new file with mode: 0644]
examples/server/tests/unit/test_tokenize.py [new file with mode: 0644]
examples/server/tests/utils.py [new file with mode: 0644]