[model-gateway] rename py_test to e2e_test (#16454)

This commit is contained in:
Simo Lin
2026-01-04 22:24:34 -08:00
committed by GitHub
parent f02d82211a
commit e6fe092dcc
38 changed files with 9 additions and 9 deletions

View File

@@ -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..."

View File

@@ -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.

View File

@@ -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

View File

@@ -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

View File

@@ -1,5 +1,5 @@
[pytest]
testpaths = py_test
testpaths = e2e_test
python_files = test_*.py
python_classes = Test*
python_functions = test_*