From 9ffae1e1cb4c5ee6987566d5cd272ada2a5002be Mon Sep 17 00:00:00 2001 From: mtravis Date: Sat, 4 Nov 2023 18:27:30 +0000 Subject: [PATCH] Fixed geocode test --- tests/test_open_buildings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_open_buildings.py b/tests/test_open_buildings.py index 0b5d1ca..8dc68cc 100644 --- a/tests/test_open_buildings.py +++ b/tests/test_open_buildings.py @@ -65,7 +65,8 @@ def test_quadkey_to_geojson(): def test_geocode(): """ Tests geocode() using a pre-established true value. """ - assert geocode('plymouth') == {"type": "Polygon", "coordinates": [[[-4.0196056, 50.3327426], [-4.0196056, 50.4441737], [-4.2055324, 50.4441737], [-4.2055324, 50.3327426], [-4.0196056, 50.3327426]]]} + + assert json.loads(geocode('plymouth')) == {"type": "Polygon", "coordinates": [[[-4.0196056, 50.3327426], [-4.0196056, 50.4441737], [-4.2055324, 50.4441737], [-4.2055324, 50.3327426], [-4.0196056, 50.3327426]]]} @pytest.mark.integration @pytest.mark.flaky(reruns=NUM_RERUNS)