From 78099db917289a3100ea0ee7558da5627582fc6f Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Thu, 24 Sep 2020 22:29:36 +0300 Subject: Rename get_prediction_events() --- iss/predictions.py | 2 +- iss/tests/test_predictions.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/iss/predictions.py b/iss/predictions.py index 9f5023d..eb02ef9 100644 --- a/iss/predictions.py +++ b/iss/predictions.py @@ -45,7 +45,7 @@ class Predictions(object): by_name = {sat.name: sat for sat in satellites} return by_name[self.satellite] - def get_predictions(self): + def get_prediction_events(self): satellite = self.get_satellite() t0, t1 = self.get_next_days() location = self.get_location() diff --git a/iss/tests/test_predictions.py b/iss/tests/test_predictions.py index 4c55f5b..035ab9a 100644 --- a/iss/tests/test_predictions.py +++ b/iss/tests/test_predictions.py @@ -36,7 +36,7 @@ def test_get_predictions(): p = Predictions( lat=32.0853, lng=34.7817, tz="Asia/Jerusalem", start=start, tle_file=STATIONS ) - preds = p.get_predictions() + preds = p.get_prediction_events() assert len(preds) == 16 assert preds[0] == [ "2020-09-24T21:31:31Z", @@ -53,5 +53,5 @@ def test_get_predictions(): days=5, tle_file=STATIONS, ) - preds = p.get_predictions() + preds = p.get_prediction_events() assert len(preds) == 39 -- cgit v1.3.1