mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-27 18:50:41 +00:00
refactor: move tests/client-sdk to tests/api (#1376)
This PR moves the client-sdk tests to the api directory to better reflect their purpose and improve code organization.
This commit is contained in:
parent
c3155cb1bc
commit
5736c7d682
29 changed files with 13 additions and 13 deletions
|
@ -3,23 +3,23 @@ You can run llama stack integration tests on either a Llama Stack Library or a L
|
|||
|
||||
To test on a Llama Stack library with certain configuration, run
|
||||
```bash
|
||||
LLAMA_STACK_CONFIG=./llama_stack/templates/cerebras/run.yaml pytest -s -v tests/client-sdk/inference/
|
||||
LLAMA_STACK_CONFIG=./llama_stack/templates/cerebras/run.yaml pytest -s -v tests/api/inference/
|
||||
```
|
||||
or just the template name
|
||||
```bash
|
||||
LLAMA_STACK_CONFIG=together pytest -s -v tests/client-sdk/inference/
|
||||
LLAMA_STACK_CONFIG=together pytest -s -v tests/api/inference/
|
||||
```
|
||||
|
||||
To test on a Llama Stack endpoint, run
|
||||
```bash
|
||||
LLAMA_STACK_BASE_URL=http://localhost:8089 pytest -s -v tests/client-sdk/inference
|
||||
LLAMA_STACK_BASE_URL=http://localhost:8089 pytest -s -v tests/api/inference
|
||||
```
|
||||
|
||||
## Report Generation
|
||||
|
||||
To generate a report, run with `--report` option
|
||||
```bash
|
||||
LLAMA_STACK_CONFIG=together pytest -s -v report.md tests/client-sdk/ --report
|
||||
LLAMA_STACK_CONFIG=together pytest -s -v report.md tests/api/ --report
|
||||
```
|
||||
|
||||
## Common options
|
Before Width: | Height: | Size: 415 KiB After Width: | Height: | Size: 415 KiB |
|
@ -35,7 +35,7 @@ def test_image_chat_completion_non_streaming(client_with_models, vision_model_id
|
|||
"type": "image",
|
||||
"image": {
|
||||
"url": {
|
||||
"uri": "https://raw.githubusercontent.com/meta-llama/llama-stack/main/tests/client-sdk/inference/dog.png"
|
||||
"uri": "https://raw.githubusercontent.com/meta-llama/llama-stack/main/tests/api/inference/dog.png"
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -63,7 +63,7 @@ def test_image_chat_completion_streaming(client_with_models, vision_model_id):
|
|||
"type": "image",
|
||||
"image": {
|
||||
"url": {
|
||||
"uri": "https://raw.githubusercontent.com/meta-llama/llama-stack/main/tests/client-sdk/inference/dog.png"
|
||||
"uri": "https://raw.githubusercontent.com/meta-llama/llama-stack/main/tests/api/inference/dog.png"
|
||||
},
|
||||
},
|
||||
},
|
Before Width: | Height: | Size: 514 KiB After Width: | Height: | Size: 514 KiB |
Before Width: | Height: | Size: 176 KiB After Width: | Height: | Size: 176 KiB |
Loading…
Add table
Add a link
Reference in a new issue