refactor: unify impl operation gates and correction verification
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
"""Executable consumer declaration contract wiring."""
|
||||
from pathlib import Path
|
||||
from harness.tests.common.impl_contract_docs import read_contract
|
||||
import unittest
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[3]
|
||||
@@ -22,7 +23,7 @@ class DelegationAdoptionContractTests(unittest.TestCase):
|
||||
'review/skills/gitea-code-review',
|
||||
)
|
||||
for path in paths:
|
||||
text = (ROOT / 'harness/agents' / path / 'SKILL.md').read_text()
|
||||
text = read_contract(ROOT / 'harness/agents' / path / 'SKILL.md')
|
||||
with self.subTest(path=path):
|
||||
self.assertIn('require_adoption', text)
|
||||
self.assertIn('mode', text)
|
||||
|
||||
Reference in New Issue
Block a user