added
This commit is contained in:
1 parent
df7571392e
commit
a47b915ed5
27 files changed
+135
-1352
No files matched your search
@@ -12,7 +12,7 @@ class ApprovalLifecycleTests(unittest.TestCase):
|
||||
|
||||
def finalize(self):
|
||||
return media_approval.finalize(self.output,self.folder/'structured-final',self.intake,self.plan,
|
||||
'Synthetic reviewer','2026-10-17T22:38:28Z','Explicit synthetic approval')
|
||||
'Synthetic reviewer','2026-01-15T12:00:00Z','Explicit synthetic approval')
|
||||
|
||||
def test_final_package_and_draft_history(self):
|
||||
self.build()
|
||||
@@ -54,7 +54,7 @@ class ApprovalLifecycleTests(unittest.TestCase):
|
||||
self.build()
|
||||
with self.assertRaisesRegex(ValueError,'approval evidence required'):
|
||||
media_approval.finalize(self.output,self.folder/'structured-final',self.intake,self.plan,
|
||||
'Reviewer','2026-10-17T22:38:28Z','')
|
||||
'Reviewer','2026-01-15T12:00:00Z','')
|
||||
|
||||
def test_existing_final_is_not_overwritten(self):
|
||||
self.build();self.finalize()
|
||||
|
||||
@@ -45,3 +45,25 @@ class RepositoryContractTests(unittest.TestCase):
|
||||
self.mutate('repository.json',lambda m:m.update(version='99.0.0'))
|
||||
with self.assertRaisesRegex(AssertionError,'Manifest/version mismatch'):
|
||||
check_repository.validate_contracts(self.root)
|
||||
|
||||
|
||||
def test_public_template_has_no_operational_data(self):
|
||||
self.assertGreater(check_repository.validate_public_template(ROOT)['public_template_files'], 0)
|
||||
|
||||
def test_private_task_record_is_rejected(self):
|
||||
private = self.root/'tasks'/'operator-notes.md'
|
||||
private.parent.mkdir()
|
||||
private.write_text('Synthetic operational record', encoding='utf-8')
|
||||
with self.assertRaisesRegex(AssertionError, 'Operational records'):
|
||||
check_repository.validate_public_template(self.root)
|
||||
|
||||
def test_machine_specific_path_is_rejected(self):
|
||||
path = self.root/'docs'/'local-path.md'
|
||||
path.write_text('Z' + ':' + '/workstation/recordings/session', encoding='utf-8')
|
||||
with self.assertRaisesRegex(AssertionError, 'Absolute machine path'):
|
||||
check_repository.validate_public_template(self.root)
|
||||
|
||||
def test_recording_approval_receipt_is_rejected(self):
|
||||
(self.root/'approval.json').write_text('{}', encoding='utf-8')
|
||||
with self.assertRaisesRegex(AssertionError, 'Recording-specific output'):
|
||||
check_repository.validate_public_template(self.root)
|
||||
Reference in new issue
Block a user