Add a hybrid session-scoped studio_server fixture in conftest.py that feeds base_url / api_key into the existing e2e test functions. Three invocation modes are now supported: 1. Script mode (unchanged) — python tests/test_studio_run.py 2. Pytest + external server — point at a running instance via UNSLOTH_E2E_BASE_URL / UNSLOTH_E2E_API_KEY env vars, no per-run GGUF load cost 3. Pytest + fixture-managed server — pytest drives _start_server / _kill_server itself via --unsloth-model / --unsloth-gguf-variant, CI-friendly The existing _start_server / _kill_server helpers and main() stay untouched so the script entry point keeps working exactly as before. Test function signatures are unchanged — the (base_url, api_key) parameters now resolve via the new fixtures when running under pytest. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| conftest.py | ||
| test_anthropic_messages.py | ||
| test_cache_case_resolution.py | ||
| test_data_recipe_seed.py | ||
| test_gpu_selection.py | ||
| test_gpu_selection_sandbox.py | ||
| test_kv_cache_estimation.py | ||
| test_models_get_model_config_case_resolution.py | ||
| test_native_context_length.py | ||
| test_responses_api.py | ||
| test_studio_run.py | ||
| test_transformers_version.py | ||
| test_utils.py | ||
| test_vision_cache.py | ||
| test_vram_estimation.py | ||