(cherry picked from commit 28f419123b0ae436e17e1d9c727bde4627ba1b91)
16 lines
555 B
Python
16 lines
555 B
Python
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
|