From 9e0ae5fa08b0b47f2d233bf85b63885a1aa8cee3 Mon Sep 17 00:00:00 2001 From: kim Date: Tue, 2 Apr 2024 16:21:46 -0800 Subject: [PATCH] update content type to expect appropriate mime type for geojson (geo+json) --- yml_tests/test_baseline_manager.py | 3 ++- yml_tests/test_url_manager.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/yml_tests/test_baseline_manager.py b/yml_tests/test_baseline_manager.py index b4ba02fb..c58be13d 100644 --- a/yml_tests/test_baseline_manager.py +++ b/yml_tests/test_baseline_manager.py @@ -161,7 +161,8 @@ def jsonToDict(json_data): else: content_type = "download" ## GEOJSON - elif content_type == "geojson": + elif content_type == "geo+json": + content_type = "geojson" if file_content == '{\n "features": [],\n "type": "FeatureCollection"\n}': content_type = "empty geojson" diff --git a/yml_tests/test_url_manager.py b/yml_tests/test_url_manager.py index 107dd9af..173b4cef 100644 --- a/yml_tests/test_url_manager.py +++ b/yml_tests/test_url_manager.py @@ -173,7 +173,8 @@ def jsonToDict(json_data): else: content_type = "x-python" ## GEOJSON - elif content_type == "geojson": + elif content_type == "geo+json": + content_type = "geojson" if file_content == '{\n "features": [],\n "type": "FeatureCollection"\n}': content_type = "empty geojson"