From be0938dded39515804ae302c958e717282d89feb Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 3 Sep 2016 13:32:16 -0400 Subject: [PATCH] Add test ensuring that the type of position is float --- wolframalpha/test_client.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wolframalpha/test_client.py b/wolframalpha/test_client.py index 004294e..5b08e9a 100644 --- a/wolframalpha/test_client.py +++ b/wolframalpha/test_client.py @@ -65,6 +65,11 @@ def test_properties(temp_result): assert len(info) == len(pods) + len(warnings) + len(assumptions) +def test_pod_position_is_float(temp_result): + pod = next(temp_result.pods) + assert isinstance(pod.position, float) + + def test_invalid_app_id(): client = wolframalpha.Client('abcdefg') with pytest.raises(Exception):