From 32c802a8eb0326102f35e44487ce0f27eeeee321 Mon Sep 17 00:00:00 2001 From: Dan Scales Date: Fri, 13 Oct 2023 11:15:15 -0700 Subject: [PATCH] Rename licensed_wdpa_protected_areas -> wdpa_licensed_protected_areas --- app/routes/datasets/queries.py | 2 +- tests_v2/conftest.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/routes/datasets/queries.py b/app/routes/datasets/queries.py index f1f3de83a..8964c8dff 100755 --- a/app/routes/datasets/queries.py +++ b/app/routes/datasets/queries.py @@ -88,7 +88,7 @@ # Datasets that require admin privileges to do a query. (Extra protection on # commercial datasets which shouldn't be downloaded in any way.) -PROTECTED_QUERY_DATASETS = ["licensed_wdpa_protected_areas"] +PROTECTED_QUERY_DATASETS = ["wdpa_licensed_protected_areas"] @router.get( "/{dataset}/{version}/query", diff --git a/tests_v2/conftest.py b/tests_v2/conftest.py index 0620728c4..4340865d8 100755 --- a/tests_v2/conftest.py +++ b/tests_v2/conftest.py @@ -300,7 +300,7 @@ async def licensed_dataset( """Create licensed dataset.""" # Create dataset - dataset_name: str = "licensed_wdpa_protected_areas" + dataset_name: str = "wdpa_licensed_protected_areas" await async_client.put( f"/dataset/{dataset_name}", json={"metadata": DATASET_METADATA}