Repository navigation
feat(evidence-check): 断言强度检查支持 Python unittest 与 openspec Scenario - #3
Merged
Merged
Conversation
纯 Python + openspec 仓的 spec diff 此前必被误报(只认 JS expect/toBe 系)。 - case 分支补 assertEqual/assertIn/assertTrue/assertFalse/assertLess/assertGreater/assertRegex/assertRaises - 触发与匹配补 openspec '#### Scenario:' 标记 - 同步更新两处错误提示文案
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
evidence-check.yml的断言强度检查此前只认 JS 系标记(expect/toBe/toEqual/toContain/toMatch/toThrow)。纯 Python + openspec 仓的 spec diff 即使包含真实断言,也会被误报:contentweave 消费仓(纯 Python 标准库 + openspec 规格)已在本地做了该增强并稳定运行;本次将通用部分回馈上游。
改动(仅
workflows/evidence-check.yml,+6/-5)assertEqual|assertIn|assertTrue|assertFalse|assertLess|assertGreater|assertRegex|assertRaises(触发条件沿用既有assert子串检测,Python 断言天然命中)。Scenario,覆盖 openspec#### Scenario: WHEN/THEN格式。范围说明
{{DEFAULT_BRANCH}}占位符差异(消费仓本地改动,非本 PR 目标)。scripts/dqart_evidence_check.py)不回馈,留在消费仓。验证
sed -n '170,200p'逐字比对 →IDENTICAL。