added
This commit is contained in:
1 parent
df7571392e
commit
a47b915ed5
27 files changed
+135
-1352
No files matched your search
@@ -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