refactor: unify impl operation gates and correction verification
This commit is contained in:
@@ -7,6 +7,7 @@ import unittest
|
||||
from argparse import Namespace
|
||||
from pathlib import Path
|
||||
from urllib.parse import parse_qs, urlsplit
|
||||
from harness.tests.common.impl_contract_docs import read_contract
|
||||
|
||||
DIRECTORY = Path(__file__).parents[2] / 'agents/impl/skills/gitea-issue-rework/scripts'
|
||||
ORIGIN = 'https://gitea.jsfamily.quest'
|
||||
@@ -696,7 +697,7 @@ class ReworkReadbackTests(unittest.TestCase):
|
||||
|
||||
def test_shared_commit_message_safety_rule_is_linked_and_amend_is_narrow(self):
|
||||
common = (DIRECTORY.parents[4]/'operations/repository-cache.md').read_text()
|
||||
skill = (DIRECTORY.parent/'SKILL.md').read_text()
|
||||
skill = read_contract(DIRECTORY.parent / 'SKILL.md')
|
||||
self.assertIn('## Commit-message reference safety', common)
|
||||
for clause in ('complete subject and body', 'cross-repository',
|
||||
'non-default branch', 'explicit user authorization',
|
||||
|
||||
Reference in New Issue
Block a user