Fix clean checkout CI assumptions
This commit is contained in:
@@ -15,8 +15,8 @@ if SCRIPTS not in sys.path:
|
||||
|
||||
import jyotish_api_server # noqa: E402
|
||||
from jyotish_api_server import ( # noqa: E402
|
||||
BadRequest,
|
||||
DEFAULT_ALLOWED_ORIGINS,
|
||||
BadRequest,
|
||||
JyotishAPIHandler,
|
||||
_load_local_module,
|
||||
_parse_allowed_origins,
|
||||
@@ -538,7 +538,8 @@ def test_fragment_audit_blocks_registry_surface_drift() -> None:
|
||||
assert result['registry']['technique_count'] >= 60
|
||||
assert result['workspace_residue']['untracked_count'] >= 0
|
||||
assert isinstance(result['workspace_residue']['untracked_files'], list)
|
||||
assert result['workspace_residue']['git_lost_found_count'] >= 1
|
||||
assert result['workspace_residue']['git_lost_found_count'] >= 0
|
||||
assert isinstance(result['workspace_residue']['git_lost_found_files'], list)
|
||||
assert result['open_source_sources']['source_count'] >= 3
|
||||
assert all(row['commands'] for row in result['rows'] if row['status'] in {'covered', 'complete'})
|
||||
assert not any(problem['kind'] == 'missing_output_path' for problem in result['problems'])
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user