[router][CI] Clean up imports and prints statements in sgl-router/py_test (#12024)

This commit is contained in:
Chang Su
2025-10-23 11:56:57 -07:00
committed by GitHub
parent 8bd26dd4e6
commit 28b8a4064d
31 changed files with 115 additions and 153 deletions

View File

@@ -5,9 +5,7 @@ These tests focus on testing the argument parsing logic in isolation,
without starting actual router instances.
"""
import argparse
from types import SimpleNamespace
from unittest.mock import MagicMock, patch
import pytest
from sglang_router.launch_router import RouterArgs, parse_router_args

View File

@@ -5,7 +5,6 @@ These tests focus on testing the router configuration logic in isolation,
including validation of configuration parameters and their interactions.
"""
from types import SimpleNamespace
from unittest.mock import MagicMock, patch
import pytest

View File

@@ -6,8 +6,7 @@ including router initialization, configuration validation, and startup flow.
"""
import logging
from types import SimpleNamespace
from unittest.mock import MagicMock, call, patch
from unittest.mock import MagicMock, patch
import pytest
from sglang_router.launch_router import RouterArgs, launch_router

View File

@@ -5,7 +5,6 @@ These tests focus on testing the validation logic in isolation,
including parameter validation, URL validation, and configuration validation.
"""
from types import SimpleNamespace
from unittest.mock import MagicMock, patch
import pytest