Record operator approval of the two factory audit sender lanes
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s

Assistant: codex
Assistant-Model: gpt-6-astra
Assistant-Session: 01a07ff8-19d0-7820-b4d0-1353833cb7fc
This commit is contained in:
codex 2026-09-11 06:47:35 +02:00
parent 0adc5b0e49
commit 5cc325b744
6 changed files with 155 additions and 106 deletions

View file

@ -22,7 +22,11 @@ import factory_audit_custody as lane
class Contracts(unittest.TestCase):
def test_proposed_requests_cannot_seed(self):
self.assertEqual(len(lane.contracts()),2)
with patch.object(lane,'bao',side_effect=AssertionError('must not contact Bao')):
module=lane.credential_module(); original=module.validate_ccr
def proposed(path):
c,errors,warnings=original(path); c=copy.deepcopy(c); c['status']='proposed'
return c,errors,warnings
with patch.object(module,'validate_ccr',side_effect=proposed), patch.object(lane,'credential_module',return_value=module), patch.object(lane,'bao',side_effect=AssertionError('must not contact Bao')):
with self.assertRaisesRegex(lane.LaneError,'approved_ccrs_required'):
lane.contracts(approved=True)