fix(release): 接受预览提示中的带引号范围确认
build / build (push) Successful in 2m22s

This commit is contained in:
姚章浩
2026-11-24 14:54:05 +08:00
parent 91f9e00010
commit c33c7e2700
2 changed files with 11 additions and 4 deletions
+4
View File
@@ -31,6 +31,10 @@ class ReleaseHandoffTest(unittest.TestCase):
'author': {'id': h.cd.RELEASE_OWNER, 'type': 'human'}}
with patch.object(h, 'comments', return_value=[parent, reply]):
self.assertEqual(h.frozen_approval('task'), saved['plan'])
quoted = dict(reply, content='「确认范围」')
with patch.object(h, 'comments', return_value=[parent, quoted]):
self.assertEqual(h.frozen_approval('task', 'ok'), saved['plan'])
self.assertIsNone(h.frozen_approval('task', 'other'))
for bad in (dict(reply, parentId=None), dict(reply, runId='agent-run'), dict(reply, content='先不确认范围')):
with patch.object(h, 'comments', return_value=[parent, bad]):
self.assertIsNone(h.frozen_approval('task'))