Skip to content

Commit 99b0e38

Browse files
committed
lint
1 parent 0a926c6 commit 99b0e38

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

tests/e2e/test_e2e_sglang.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,10 @@ def _looks_like_supported_image_bytes(img_bytes: bytes) -> bool:
156156
return True
157157
if img_bytes.startswith(_JPEG_SIGNATURE):
158158
return True
159-
if img_bytes.startswith(_WEBP_RIFF_SIGNATURE) and img_bytes[8:12] == _WEBP_FORMAT_MARKER:
159+
if (
160+
img_bytes.startswith(_WEBP_RIFF_SIGNATURE)
161+
and img_bytes[8:12] == _WEBP_FORMAT_MARKER
162+
):
160163
return True
161164
return False
162165

@@ -272,7 +275,9 @@ def sglang_workers(sglang_config):
272275
if worker_errors
273276
else "worker process exited but no stderr captured."
274277
)
275-
pytest.fail(f"sglang worker failed during startup: {exc}\n{details}", pytrace=False)
278+
pytest.fail(
279+
f"sglang worker failed during startup: {exc}\n{details}", pytrace=False
280+
)
276281
except TimeoutError as exc:
277282
worker_errors = _collect_exited_worker_errors(procs)
278283
for p in procs:
@@ -396,7 +401,9 @@ def test_multiple_images(self, router_url, sglang_config):
396401

397402
# Some real workers/models do not support n>1 yet.
398403
assert r.status_code in (400, 500)
399-
error_body = r.json() if "application/json" in r.headers.get("content-type", "") else {}
404+
error_body = (
405+
r.json() if "application/json" in r.headers.get("content-type", "") else {}
406+
)
400407
if isinstance(error_body, dict):
401408
assert error_body.get("error") or error_body.get("detail") or r.text
402409

0 commit comments

Comments
 (0)