Fix clean checkout CI assumptions

This commit is contained in:
732642856
2026-06-24 14:59:57 +08:00
parent 164d6ea90a
commit 408b3bf5c1
4 changed files with 13 additions and 4 deletions
+4 -1
View File
@@ -9,11 +9,12 @@ import csv
import os
import sys
import pytest
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', 'scripts'))
from kp_system import get_kp_lords
SIGNS = [
'Aries', 'Taurus', 'Gemini', 'Cancer', 'Leo', 'Virgo',
'Libra', 'Scorpio', 'Sagittarius', 'Capricorn', 'Aquarius', 'Pisces'
@@ -39,6 +40,8 @@ def _dms_to_degree(value: str) -> float:
def _load_rows(limit=None):
if not os.path.exists(CSV_PATH):
pytest.skip(f"VedicAstro KP oracle fixture not available: {CSV_PATH}")
with open(CSV_PATH, newline='', encoding='utf-8') as f:
rows = list(csv.DictReader(f))
return rows if limit is None else rows[:limit]