让大运接口走完整解读的同一套算法,不再返回编出来的周期。
Ashtottari 在适用时把出生前已经走过的部分算进时间线。 Co-Authored-By: Grok (agent loop)
This commit is contained in:
co-authored by
Grok (agent loop)
parent
b9cbe9aa76
commit
5ac88e58f5
@@ -1000,9 +1000,12 @@ def test_dasha_system_returns_periods_for_valid_request() -> None:
|
||||
})
|
||||
assert result['success'] is True
|
||||
assert result['key'] == 'yogini'
|
||||
assert result['precision'] == 'calculator'
|
||||
# 原值:precision == 'calculator',periods[0] 含 lord/start/end,lord 为女神名
|
||||
# 新值:precision == 'engine_module',periods 与 yogini 模块的 major 同行(yogini/planet/start_date/end_date/years)
|
||||
# 原因:/api/dasha 改为返回引擎模块主运,不再标成计算器占位
|
||||
assert result['precision'] == 'engine_module'
|
||||
assert result['periods']
|
||||
assert result['periods'][0]['lord'] in {
|
||||
assert result['periods'][0]['yogini'] in {
|
||||
'Mangala',
|
||||
'Pingala',
|
||||
'Dhanya',
|
||||
@@ -1012,7 +1015,7 @@ def test_dasha_system_returns_periods_for_valid_request() -> None:
|
||||
'Siddha',
|
||||
'Sankata',
|
||||
}
|
||||
assert {'lord', 'start', 'end', 'years'} <= set(result['periods'][0])
|
||||
assert {'yogini', 'planet', 'start_date', 'end_date', 'years'} <= set(result['periods'][0])
|
||||
assert 'vimshottari_analysis' not in result
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user