feat(oracle): group first packet assistant gaps
This commit is contained in:
@@ -47,6 +47,9 @@ def test_first_oracle_packet_assistant_reports_dasha_next_fields() -> None:
|
||||
"metadata.source_artifact",
|
||||
"target.vimshottari_start_date",
|
||||
]
|
||||
assert report["missing_groups"]["metadata"]["count"] == 5
|
||||
assert report["missing_groups"]["target"]["count"] == 1
|
||||
assert report["missing_groups"]["target"]["fields"] == ["target.vimshottari_start_date"]
|
||||
assert report["ready_to_apply"] is False
|
||||
assert "JHora" in " ".join(report["external_sources"])
|
||||
|
||||
@@ -87,6 +90,8 @@ def test_first_oracle_packet_assistant_reports_tajika_front() -> None:
|
||||
assert report["case_id"] == "template_steve_jobs_varshaphala_1984_lahiri"
|
||||
assert report["operator_card"].endswith("tajika_steve_jobs_1984_first_packet_operator_card.md")
|
||||
assert report["packet_template"].endswith("tajika_steve_jobs_1984_first_packet.json")
|
||||
assert report["missing_groups"]["metadata"]["count"] == 5
|
||||
assert report["missing_groups"]["target"]["count"] == 10
|
||||
assert "target.solar_return_datetime" in report["missing_fields"]
|
||||
assert "target.sahams.punya_saham" in report["missing_fields"]
|
||||
|
||||
@@ -114,5 +119,35 @@ def test_first_oracle_packet_assistant_reports_shadbala_front() -> None:
|
||||
assert report["case_id"] == "template_redacted_place_shadbala_raman"
|
||||
assert report["operator_card"].endswith("shadbala_redacted_place_raman_first_packet_operator_card.md")
|
||||
assert report["packet_template"].endswith("shadbala_redacted_place_raman_first_packet.json")
|
||||
assert report["missing_groups"]["metadata"]["count"] == 5
|
||||
assert report["missing_groups"]["target"]["count"] == 50
|
||||
assert report["missing_groups"]["bodies"]["Sun"]["count"] == 7
|
||||
assert report["missing_groups"]["bodies"]["Moon"]["count"] == 7
|
||||
assert report["missing_groups"]["bodies"]["Saturn"]["count"] == 7
|
||||
assert "target.moon_sidereal_longitude_deg" in report["missing_fields"]
|
||||
assert "target.shadbala_components.Sun.sthana" in report["missing_fields"]
|
||||
|
||||
|
||||
def test_first_oracle_packet_assistant_markdown_includes_group_summary() -> None:
|
||||
completed = subprocess.run(
|
||||
[
|
||||
sys.executable,
|
||||
"scripts/first_oracle_packet_assistant.py",
|
||||
"--front",
|
||||
"shadbala",
|
||||
"--format",
|
||||
"markdown",
|
||||
],
|
||||
cwd=ROOT,
|
||||
text=True,
|
||||
capture_output=True,
|
||||
timeout=60,
|
||||
check=False,
|
||||
)
|
||||
|
||||
assert completed.returncode == 0, completed.stderr or completed.stdout
|
||||
markdown = completed.stdout
|
||||
assert "## Missing Summary" in markdown
|
||||
assert "- metadata: `5`" in markdown
|
||||
assert "- target: `50`" in markdown
|
||||
assert "- Sun: `7`" in markdown
|
||||
|
||||
Reference in New Issue
Block a user