summaryrefslogtreecommitdiff
path: root/iss/tests
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2020-09-23 17:54:52 +0300
committerYuval Adam <_@yuv.al>2020-09-23 17:54:52 +0300
commite9942559847d46face3ee0763c875a625abb4c2a (patch)
tree5c7b59175a839c232adaf2531edff3dcc2f47d3c /iss/tests
parent081abd6b2362a1ee9da9655428e625b96ad46251 (diff)
Implement get_next_days_timescale
Diffstat (limited to 'iss/tests')
-rw-r--r--iss/tests/test_predictions.py11
1 files changed, 9 insertions, 2 deletions
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