Skip to content

Commit 47b028b

Browse files
Fix pyright type-check errors in E2E tests
- Move json import to module level in test_tool_integration.py to fix 'possibly unbound' error - Remove unused pytest import from test_pipeline_workflows.py - Remove unused os import from test_tool_integration.py These changes address CI linter requirements for proper type safety. Co-Authored-By: Alex Peng <[email protected]>
1 parent 5ad91e8 commit 47b028b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

tools/server/tests/e2e/test_pipeline_workflows.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
- KV cache behavior validation during extended workflows
99
"""
1010

11-
import pytest
1211
from utils import *
1312

1413

tools/server/tests/e2e/test_tool_integration.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
- Tool parameter validation and error handling
99
"""
1010

11+
import json
1112
import pytest
12-
import os
1313
from utils import *
1414

1515

@@ -280,7 +280,6 @@ def test_cli_json_output_format(pipeline_process, e2e_small_model_config):
280280
output = result.stdout.decode()
281281

282282
try:
283-
import json
284283
json.loads(output)
285284
except json.JSONDecodeError:
286285
pass

0 commit comments

Comments
 (0)