code-to10 v6 A14 batch2: test E402/F401 cleanup plus touched-file residual E,F cleanup

(cherry picked from commit 1db02545f74c96b3b92be4fc32954659cec1f814)

Reconcile-conflict: A14b E402 imports referencing cloud.handler_core (does not exist here; core methods live in server.py) — kept HEAD imports with incoming's noqa: E402 markers, dropped the unused core_mod import (verified unused elsewhere in both files).
This commit is contained in:
host committed 2026-11-03 02:49:26 +00:00
1 parent bd55599859
commit 488aedbcad
26 files changed
+51 -80

No files matched your search

+2 -2
View File
@@ -11,7 +11,6 @@ import sqlite3
import subprocess
import sys
import tempfile
import time
import unittest
from pathlib import Path
@@ -506,7 +505,8 @@ class WorkerDbTestCase(unittest.TestCase):
fake2 = Worker(self.db_path, "/fake/host.py",
env={"XCM_API_KEY": "x"},
repos_runner=lambda cmd, timeout=None: (_ for _ in ()).throw(TypeError("one-arg only")) if False else two_arg(cmd, timeout))
repos_runner=(lambda cmd, timeout=None: (_ for _ in ()).throw(TypeError("one-arg only"))
if False else two_arg(cmd, timeout)))
# 上面 fake2 的 runner 本身接受两参,直接验证两参路径。
self.assertEqual(fake2._run_git(["git"]), ("two", None))