Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
33 lines
1.9 KiB
Python
33 lines
1.9 KiB
Python
"""BUG-2043 (staging 复测第十一轮, 2026-11-20): the report opening carries one "not a certain event"
|
|
notice, in the 「重点」 block, instead of three in a row. Product copy from 2026-10-08 / 2026-11-06; none of the
|
|
three is an astrologer-mandated sentence (none exists in her skill)."""
|
|
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
OPENING = (ROOT / "scripts/report_render/opening_guide.py").read_text(encoding="utf-8")
|
|
PACKS = (ROOT / "scripts/pl9_interpretation_packs.py").read_text(encoding="utf-8")
|
|
|
|
|
|
def _code(source: str) -> str:
|
|
return "\n".join(line for line in source.splitlines() if not line.lstrip().startswith("#"))
|
|
|
|
|
|
def test_timeline_and_domain_blocks_no_longer_repeat_the_notice() -> None:
|
|
code = _code(OPENING)
|
|
# 原值:「……不是确定的事件日期。」「……不是单独的事件预言;……」
|
|
# 新值:两句都不带「不是……」;原因:BUG-2043,开头连着三句同类提醒
|
|
assert "不是确定的事件日期" not in code
|
|
assert "不是单独的事件预言" not in code
|
|
assert "not fixed event dates" not in code
|
|
assert "not standalone event forecasts" not in code
|
|
assert "大运交界适合用来回看实际经历。完整时间表在后面。" in code
|
|
assert "这些是宫主与分盘的计算落点,要和对应分盘、两套大运及行运一起看。" in code
|
|
# Each Chinese sentence keeps an English sibling.
|
|
assert "Period changes are checkpoints for reviewing actual developments. The complete timelines follow below." in code
|
|
assert "These are calculated house-lord and divisional placements. Read them with the divisional charts, both Dasha systems and transits." in code
|
|
|
|
|
|
def test_the_focus_block_keeps_the_single_notice() -> None:
|
|
assert 'caveat = "这段时间可能突出这些宫主所守护的主题,不是确定会发生的事。"' in PACKS
|