[model-gateway] rename py_test to e2e_test (#16454)
This commit is contained in:
@@ -120,7 +120,7 @@ python-clean: ## Clean Python build artifacts
|
||||
|
||||
python-test: ## Run Python tests
|
||||
@echo "Running Python tests..."
|
||||
@pytest py_test/ -v
|
||||
@pytest e2e_test/ -v
|
||||
|
||||
python-check: ## Check Python package with twine
|
||||
@echo "Checking Python package..."
|
||||
|
||||
@@ -1001,7 +1001,7 @@ cd bindings/python && maturin develop
|
||||
|
||||
# Run Python tests
|
||||
cd ../.. # Back to sgl-model-gateway root
|
||||
pytest py_test/
|
||||
pytest e2e_test/
|
||||
```
|
||||
For production builds, use `maturin build --release --out dist` from the `bindings/python/` directory to create optimized wheels. During development, `maturin develop` rebuilds and installs instantly without creating wheel files. Use `python -m sglang_router.launch_server` to co-launch router and SGLang workers in small clusters for local validation.
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ with minimal changes:
|
||||
- All test logic and assertions remain identical
|
||||
|
||||
Run with:
|
||||
pytest py_test/e2e_grpc/e2e_grpc/function_call/test_openai_function_calling.py -v
|
||||
pytest e2e_test/e2e_grpc/e2e_grpc/function_call/test_openai_function_calling.py -v
|
||||
"""
|
||||
|
||||
import json
|
||||
@@ -9,7 +9,7 @@ with minimal changes:
|
||||
- All test logic and assertions remain identical
|
||||
|
||||
Run with:
|
||||
pytest py_test/e2e_grpc/e2e_grpc/validation/test_openai_server_ignore_eos.py -v
|
||||
pytest e2e_test/e2e_grpc/e2e_grpc/validation/test_openai_server_ignore_eos.py -v
|
||||
"""
|
||||
|
||||
import sys
|
||||
@@ -1,5 +1,5 @@
|
||||
[pytest]
|
||||
testpaths = py_test
|
||||
testpaths = e2e_test
|
||||
python_files = test_*.py
|
||||
python_classes = Test*
|
||||
python_functions = test_*
|
||||
|
||||
Reference in New Issue
Block a user