Land QA fixes and repository hygiene guardrails

This commit is contained in:
732642856
2026-06-29 03:25:03 +08:00
parent 4bd1e6db70
commit 25000647e7
8 changed files with 100 additions and 2 deletions
+13
View File
@@ -368,6 +368,19 @@ def test_remedies_accepts_api_rupas_shape() -> None:
assert result['recommendations']['mantras']
def test_remedies_endpoint_accepts_numeric_shadbala_shorthand() -> None:
handler = _handler()
result = handler._compute_remedies({
'shadbala': {'Sun': 0.42, 'Moon': 0.68},
'dasha_lord': 'Saturn',
'doshas': ['Mangal Dosha'],
})
assert result['weak_planets'] == ['Sun']
assert 'Moon' in result['moderate_planets']
assert any(item['source'] == 'shadbala' and item['planet'] == 'Sun' for item in result['evidence_chain'])
def test_import_chart_accepts_plain_text() -> None:
handler = _handler()
result = handler._import_chart_text({