From e9942559847d46face3ee0763c875a625abb4c2a Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Wed, 23 Sep 2020 17:54:52 +0300 Subject: Implement get_next_days_timescale --- iss/tests/test_predictions.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'iss/tests') diff --git a/iss/tests/test_predictions.py b/iss/tests/test_predictions.py index 43dad05..541b2d8 100644 --- a/iss/tests/test_predictions.py +++ b/iss/tests/test_predictions.py @@ -1,2 +1,9 @@ -def test_foo(): - assert 1 == 1 +from ..predictions import Predictions + + +def test_get_timescales(): + p = Predictions(lat=32.0853, lng=34.7817, tz="Asia/Jerusalem") + days = 5 + t0, t1 = p.get_next_days_timescale(days=days) + delta = t1.ut1 - t0.ut1 + assert delta == days -- cgit v1.3.1