16 lines
452 B
Python
16 lines
452 B
Python
import re
|
|
from pathlib import Path
|
|
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
|
|
|
|
def test_only_ayanamsa_utils_sets_process_sidereal_mode() -> None:
|
|
violations = []
|
|
for path in (ROOT / "scripts").rglob("*.py"):
|
|
if path.name == "ayanamsa_utils.py":
|
|
continue
|
|
if re.search(r"\bset_sid_mode\s*\(", path.read_text(encoding="utf-8")):
|
|
violations.append(str(path.relative_to(ROOT)))
|
|
assert violations == []
|