feat(report): ship full-mode longform appendix beside the five-chapter report
Web export now calls the same full pack as the long skill report and caches an owner-only Markdown download. Appendix failure stays unavailable and does not change the main report status. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -21,6 +21,7 @@ from scripts.jyotish_engine import (
|
||||
)
|
||||
from scripts.professional_report_reference import (
|
||||
ProfessionalReportReferenceInputError,
|
||||
_export_args,
|
||||
build_professional_report_reference,
|
||||
)
|
||||
|
||||
@@ -96,6 +97,16 @@ def test_json_and_markdown_reuse_one_full_reading_and_normalize_packs() -> None:
|
||||
assert engine.calls[-1][2] == ["full"]
|
||||
|
||||
|
||||
def test_export_args_fill_today_target_year_and_age_for_full_mode() -> None:
|
||||
args = _export_args({**BIRTH, "today": None})
|
||||
assert args.today
|
||||
assert args.target_year == int(str(args.today)[:4])
|
||||
assert args.age == args.target_year - 1990
|
||||
explicit = _export_args({**BIRTH, "today": "2026-09-05", "age": 36})
|
||||
assert explicit.target_year == 2026
|
||||
assert explicit.age == 36
|
||||
|
||||
|
||||
def test_public_markdown_sanitizer_removes_renderer_authored_internal_references() -> None:
|
||||
unsafe = (
|
||||
"| audit | `raw_full_reading.modules.private_engine` |\n"
|
||||
|
||||
Reference in New Issue
Block a user