fix(release): 需求单状态改由负责人手动切换
build / build (push) Successful in 2m5s

This commit is contained in:
姚章浩
2026-11-24 23:15:15 +08:00
parent 501fbae6ff
commit 49f9994ea6
7 changed files with 37 additions and 3 deletions
+9
View File
@@ -76,6 +76,15 @@ class ReleaseHandoffTest(unittest.TestCase):
self.assertEqual(queue.drain(), 'occupied')
docker.assert_not_called()
def test_ready_demand_waits_for_owner_to_start_testing(self):
record = {'id': 'task', 'typeId': '1b7f1bb1-72c2-4106-b305-85604cf6d7e2', 'url': 'https://example.test/task',
'status': {'id': h.coordinator.WAIT_TEST}}
plan = {'task': 'task', 'items': [{'task': 'task'}]}
with patch.object(h.coordinator, 'task', return_value=record), patch.object(h.coordinator, 'add_comment'), \
patch.object(h.coordinator.hfx, 'hifox') as cli:
h.coordinator.publish_candidate(plan, dict(sha='a'*40, bundle='b'*64, url='https://example.test'), '1')
cli.assert_not_called()
def test_owner_approval_is_bound_to_exact_preview_and_parent(self):
with tempfile.TemporaryDirectory() as tmp, patch.object(h, 'DIRECTORY', Path(tmp)):
saved = {'content': 'reviewed scope', 'comment': 'preview', 'plan': {'frozen': True}}