fix(api): technique explorer bhava_chalit sample carries the birth moment (BUG-1077 acceptance)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017eEAG8HD3mm8gsKXgk8uU8
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
36fae8fabf
commit
4189750c6a
@@ -3906,3 +3906,21 @@ def test_aspects_endpoint_returns_pair_summary() -> None:
|
||||
assert result['success'] is True
|
||||
assert result['result']['summary']['total_aspects'] >= 0
|
||||
assert 'by_type' in result['result']['summary']
|
||||
|
||||
|
||||
def test_technique_example_bhava_chalit_runs_with_a_real_mc():
|
||||
"""BUG-1077 follow-up: the explorer's sample must carry the birth moment.
|
||||
|
||||
After the placeholder MC was removed, the old sample (planets + ascendant
|
||||
only) made Sripati refuse with 400, so the technique explorer's
|
||||
`/api/bhava_chalit` example broke. The sample now includes `birth`, and the
|
||||
houses are the real Sripati spans rather than twelve 30-degree houses.
|
||||
"""
|
||||
handler = _handler()
|
||||
result = handler._compute_technique_example({'endpoint': '/api/bhava_chalit'})
|
||||
assert result['success'] is True
|
||||
target = result['result']
|
||||
assert target['selected_house_system'] == 'sripati'
|
||||
spans = [row['span_degrees'] for row in target['result']['boundaries']['houses']]
|
||||
assert len(spans) == 12
|
||||
assert not all(abs(span - 30.0) < 1e-6 for span in spans)
|
||||
|
||||
Reference in New Issue
Block a user