From 424df78b09bd46876f29bbf1dc9f253551a76736 Mon Sep 17 00:00:00 2001 From: "Adam R. Jensen" <39184289+AdamRJensen@users.noreply.github.com> Date: Sun, 25 Jan 2026 21:18:55 +0100 Subject: [PATCH] Add testing kwarg for skyfield tests --- tests/test_solarposition.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_solarposition.py b/tests/test_solarposition.py index 016a643..5677796 100644 --- a/tests/test_solarposition.py +++ b/tests/test_solarposition.py @@ -478,7 +478,8 @@ def test_algorithm(algorithm, expected, kwargs, test_conditions): result.name = algorithm.__module__ pd.testing.assert_index_equal(expected.index, result.index) - testing_kwargs = {'rtol': 1e-3} if algorithm.__name__ == 'sg2' else {'rtol': 1e-9} + rtol_dict = {'sg2': 1e-3, 'skyfield': 1e-6} + testing_kwargs = {'rtol': rtol_dict.get(algorithm.__name__, 1e-9)} pd.testing.assert_frame_equal( expected, result, check_like=False, **testing_kwargs) for c in expected.columns: