From fcb862b5f56094504746ca75820f19d978ea08dc Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Thu, 24 Sep 2020 22:53:08 +0300 Subject: Refactor inits --- iss/tests/test_predictions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'iss/tests') diff --git a/iss/tests/test_predictions.py b/iss/tests/test_predictions.py index b872d60..a88674d 100644 --- a/iss/tests/test_predictions.py +++ b/iss/tests/test_predictions.py @@ -25,9 +25,9 @@ def test_custom_start(): def test_get_location(): p = Predictions(lat=32.0853, lng=34.7817) tlv = Topos("32.0853 N", "34.7817 E") - topos = p.get_location() - assert topos.latitude.degrees == tlv.latitude.degrees - assert topos.longitude.degrees == tlv.longitude.degrees + location = p.location + assert location.latitude.degrees == tlv.latitude.degrees + assert location.longitude.degrees == tlv.longitude.degrees def test_get_prediction_events(): -- cgit v1.3.1