From b53f56b6fd794f64308dfc471d14a22809bd8582 Mon Sep 17 00:00:00 2001 From: Jesse_Chen Date: Fri, 2 Oct 2026 14:51:31 +0800 Subject: [PATCH] style(tests): ruff import order and comparison order in the new sync4 tests Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01N4f2nya58RoRu4yEmJgRGE --- tests/test_arudha_single_source.py | 4 ++-- tests/test_shadbala_sun_minimum_bphs.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_arudha_single_source.py b/tests/test_arudha_single_source.py index 6c178463..59e2852a 100644 --- a/tests/test_arudha_single_source.py +++ b/tests/test_arudha_single_source.py @@ -11,10 +11,10 @@ from __future__ import annotations import pytest -from scripts.jyotish_engine import cmd_full_reading -from scripts.professional_report_reference import _export_args import scripts.special_lagnas as special_lagnas import scripts.yogas_doshas as yogas_doshas +from scripts.jyotish_engine import cmd_full_reading +from scripts.professional_report_reference import _export_args BASE = dict(year=1990, month=6, day=15, second=0, lat=39.9042, lon=116.4074, tz=8, ayanamsa="lahiri", node_mode="mean") diff --git a/tests/test_shadbala_sun_minimum_bphs.py b/tests/test_shadbala_sun_minimum_bphs.py index 04d9128d..e6fc6375 100644 --- a/tests/test_shadbala_sun_minimum_bphs.py +++ b/tests/test_shadbala_sun_minimum_bphs.py @@ -14,7 +14,7 @@ BPHS_VIRUPAS = {"Sun": 390, "Moon": 360, "Mars": 300, "Mercury": 420, "Jupiter": def test_minimum_table_matches_bphs() -> None: # 原值: Sun 5.0;新值: 6.5;其余六星不变 - assert MIN_REQUIRED == {planet: value / VIRUPAS_PER_RUPA for planet, value in BPHS_VIRUPAS.items()} + assert {planet: value / VIRUPAS_PER_RUPA for planet, value in BPHS_VIRUPAS.items()} == MIN_REQUIRED def test_sun_ishta_percentage_uses_six_and_a_half_rupas() -> None: