feat: 移除 Client 真实采购手工授权 (#114)

This commit is contained in:
chengma
2026-08-10 18:37:35 +08:00
parent 8188153b08
commit 10bb892e6c
29 changed files with 124 additions and 702 deletions
+2 -2
View File
@@ -220,11 +220,11 @@ class TaskDispatcherTest(unittest.TestCase):
authorized.claim_capabilities().purchase_mode, "live"
)
def test_local_live_task_never_runs_after_authorization_is_disabled(self):
def test_local_live_task_never_runs_when_runtime_is_not_ready(self):
task = purchase_task(execution_mode="live")
self.repository.add_claimed_task(admin_task_to_new_claimed_task(task))
with self.assertRaisesRegex(RuntimeError, "授权已关闭"):
with self.assertRaisesRegex(RuntimeError, "设备或真实采购执行器未就绪"):
self._dispatcher(
purchase_ready=True,
live_ready=True,