()
| 9 | |
| 10 | |
| 11 | def test_parse_args_required(): |
| 12 | args = parse_args( |
| 13 | [ |
| 14 | "--model", |
| 15 | "Qwen/Qwen3-14B", |
| 16 | "--port", |
| 17 | "8000", |
| 18 | "--cuda-visible-devices", |
| 19 | "1", |
| 20 | "--lora-path", |
| 21 | "/tmp/checkpoints/0000", |
| 22 | "--served-model-name", |
| 23 | "my-model@0", |
| 24 | ] |
| 25 | ) |
| 26 | assert args.model == "Qwen/Qwen3-14B" |
| 27 | assert args.port == 8000 |
| 28 | assert args.cuda_visible_devices == "1" |
| 29 | assert args.lora_path == "/tmp/checkpoints/0000" |
| 30 | assert args.served_model_name == "my-model@0" |
| 31 | assert args.host == "127.0.0.1" |
| 32 | assert args.engine_args_json == "{}" |
| 33 | assert args.server_args_json == "{}" |
| 34 | |
| 35 | |
| 36 | def test_parse_args_with_engine_args(): |
nothing calls this directly
no test coverage detected