f83db2fac1
- add external validation reports and open-source comparison references - integrate Jaimini arudha/graha pada, enhanced argala, and additional synastry kutas - update skill docs and capability matrices - add smoke tests for open-source integrations
22 lines
538 B
Python
22 lines
538 B
Python
import pytest
|
|
|
|
from jyotishganit.core.astronomical import calculate_obliquity
|
|
|
|
|
|
class FakeTime:
|
|
def __init__(self, tt):
|
|
self.tt = tt
|
|
|
|
|
|
def test_calculate_obliquity_at_j2000():
|
|
t = FakeTime(tt=2451545.0)
|
|
|
|
assert calculate_obliquity(t) == pytest.approx(84381.448 / 3600.0)
|
|
|
|
|
|
def test_calculate_obliquity_one_julian_century_after_j2000():
|
|
t = FakeTime(tt=2451545.0 + 36525.0)
|
|
expected_arcsec = 84381.448 - 46.8150 - 0.00059 + 0.001813
|
|
|
|
assert calculate_obliquity(t) == pytest.approx(expected_arcsec / 3600.0)
|