From 9959e5149bae36ccfbad4bd90a6faa9bb570b0d7 Mon Sep 17 00:00:00 2001 From: 732642856 <732642856@qq.com> Date: Fri, 2 Oct 2026 13:37:39 +0800 Subject: [PATCH] test: lock curse yoga claim boundary (cherry picked from commit 28f419123b0ae436e17e1d9c727bde4627ba1b91) --- tests/test_curse_yoga_claim_boundary.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/test_curse_yoga_claim_boundary.py diff --git a/tests/test_curse_yoga_claim_boundary.py b/tests/test_curse_yoga_claim_boundary.py new file mode 100644 index 00000000..a363329d --- /dev/null +++ b/tests/test_curse_yoga_claim_boundary.py @@ -0,0 +1,15 @@ +from pathlib import Path + + +ROOT = Path(__file__).resolve().parents[1] + + +def test_curse_yoga_meanings_do_not_make_deterministic_death_claims() -> None: + sources = [ + ROOT / 'scripts' / 'curse_yoga_detector.py', + ROOT / 'scripts' / 'rashi_tulya_navamsa.py', + ] + text = '\n'.join(path.read_text(encoding='utf-8') for path in sources) + forbidden = ('过早死亡风险', '过早死亡的风险', '可触发危险疾病或事故') + assert all(token not in text for token in forbidden) + assert '不能据此断定死亡' in text