Unverified Commit 28b8a406 authored by Chang Su's avatar Chang Su Committed by GitHub
Browse files

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

parent 8bd26dd4
import collections import collections
import math
import pytest import pytest
import requests import requests
......
import collections import collections
import time
import pytest import pytest
import requests import requests
......
import concurrent.futures
import subprocess
import time
import pytest import pytest
import requests import requests
......
import collections import collections
import concurrent.futures import concurrent.futures
import subprocess
import time import time
import pytest import pytest
......
import concurrent.futures import concurrent.futures
import time
import pytest import pytest
import requests import requests
......
import concurrent.futures
import subprocess
import time
import pytest import pytest
import requests import requests
......
import collections
import subprocess
import time
import pytest import pytest
import requests import requests
......
...@@ -5,9 +5,7 @@ These tests focus on testing the argument parsing logic in isolation, ...@@ -5,9 +5,7 @@ These tests focus on testing the argument parsing logic in isolation,
without starting actual router instances. without starting actual router instances.
""" """
import argparse
from types import SimpleNamespace from types import SimpleNamespace
from unittest.mock import MagicMock, patch
import pytest import pytest
from sglang_router.launch_router import RouterArgs, parse_router_args from sglang_router.launch_router import RouterArgs, parse_router_args
......
...@@ -5,7 +5,6 @@ These tests focus on testing the router configuration logic in isolation, ...@@ -5,7 +5,6 @@ These tests focus on testing the router configuration logic in isolation,
including validation of configuration parameters and their interactions. including validation of configuration parameters and their interactions.
""" """
from types import SimpleNamespace
from unittest.mock import MagicMock, patch from unittest.mock import MagicMock, patch
import pytest import pytest
......
...@@ -6,8 +6,7 @@ including router initialization, configuration validation, and startup flow. ...@@ -6,8 +6,7 @@ including router initialization, configuration validation, and startup flow.
""" """
import logging import logging
from types import SimpleNamespace from unittest.mock import MagicMock, patch
from unittest.mock import MagicMock, call, patch
import pytest import pytest
from sglang_router.launch_router import RouterArgs, launch_router from sglang_router.launch_router import RouterArgs, launch_router
......
...@@ -5,7 +5,6 @@ These tests focus on testing the validation logic in isolation, ...@@ -5,7 +5,6 @@ These tests focus on testing the validation logic in isolation,
including parameter validation, URL validation, and configuration validation. including parameter validation, URL validation, and configuration validation.
""" """
from types import SimpleNamespace
from unittest.mock import MagicMock, patch from unittest.mock import MagicMock, patch
import pytest import pytest
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment