diff --git a/tests/test_populate_catalog.py b/tests/test_populate_catalog.py index c964b6e62a..919387451f 100644 --- a/tests/test_populate_catalog.py +++ b/tests/test_populate_catalog.py @@ -78,13 +78,11 @@ def should_create_new_root_catalog_if_doesnt_exist(subtests: SubTests, s3_client { STAC_REL_KEY: STAC_REL_ROOT, STAC_HREF_KEY: f"./{CATALOG_FILENAME}", - STAC_TITLE_KEY: ROOT_CATALOG_TITLE, STAC_TYPE_KEY: STAC_MEDIA_TYPE_JSON, }, { STAC_REL_KEY: STAC_REL_CHILD, STAC_HREF_KEY: f"./{dataset.title}/{catalog_filename}", - STAC_TITLE_KEY: dataset.title, STAC_TYPE_KEY: STAC_MEDIA_TYPE_JSON, }, ] @@ -92,13 +90,11 @@ def should_create_new_root_catalog_if_doesnt_exist(subtests: SubTests, s3_client { STAC_REL_KEY: STAC_REL_ROOT, STAC_HREF_KEY: f"../{CATALOG_FILENAME}", - STAC_TITLE_KEY: ROOT_CATALOG_TITLE, STAC_TYPE_KEY: STAC_MEDIA_TYPE_JSON, }, { STAC_REL_KEY: STAC_REL_PARENT, STAC_HREF_KEY: f"../{CATALOG_FILENAME}", - STAC_TITLE_KEY: ROOT_CATALOG_TITLE, STAC_TYPE_KEY: STAC_MEDIA_TYPE_JSON, }, ] @@ -228,13 +224,11 @@ def should_update_root_catalog_with_new_version_catalog(subtests: SubTests) -> N { STAC_REL_KEY: STAC_REL_ROOT, STAC_HREF_KEY: f"./{CATALOG_FILENAME}", - STAC_TITLE_KEY: ROOT_CATALOG_TITLE, STAC_TYPE_KEY: STAC_MEDIA_TYPE_JSON, }, { STAC_REL_KEY: STAC_REL_CHILD, STAC_HREF_KEY: f"./{dataset.title}/{catalog_filename}", - STAC_TITLE_KEY: dataset.title, STAC_TYPE_KEY: STAC_MEDIA_TYPE_JSON, }, ] @@ -242,19 +236,16 @@ def should_update_root_catalog_with_new_version_catalog(subtests: SubTests) -> N { STAC_REL_KEY: STAC_REL_ROOT, STAC_HREF_KEY: f"../{CATALOG_FILENAME}", - STAC_TITLE_KEY: ROOT_CATALOG_TITLE, STAC_TYPE_KEY: STAC_MEDIA_TYPE_JSON, }, { STAC_REL_KEY: STAC_REL_CHILD, STAC_HREF_KEY: f"./{collection_filename}", - STAC_TITLE_KEY: dataset.title, STAC_TYPE_KEY: STAC_MEDIA_TYPE_JSON, }, { STAC_REL_KEY: STAC_REL_PARENT, STAC_HREF_KEY: f"../{CATALOG_FILENAME}", - STAC_TITLE_KEY: ROOT_CATALOG_TITLE, STAC_TYPE_KEY: STAC_MEDIA_TYPE_JSON, }, ] @@ -353,13 +344,11 @@ def should_update_root_catalog_with_new_version_collection(subtests: SubTests) - { STAC_REL_KEY: STAC_REL_ROOT, STAC_HREF_KEY: f"./{CATALOG_FILENAME}", - STAC_TITLE_KEY: ROOT_CATALOG_TITLE, STAC_TYPE_KEY: STAC_MEDIA_TYPE_JSON, }, { STAC_REL_KEY: STAC_REL_CHILD, STAC_HREF_KEY: f"./{dataset.title}/{collection_filename}", - STAC_TITLE_KEY: dataset.title, STAC_TYPE_KEY: STAC_MEDIA_TYPE_JSON, }, ] @@ -367,7 +356,6 @@ def should_update_root_catalog_with_new_version_collection(subtests: SubTests) - { STAC_REL_KEY: STAC_REL_ROOT, STAC_HREF_KEY: f"../{CATALOG_FILENAME}", - STAC_TITLE_KEY: ROOT_CATALOG_TITLE, STAC_TYPE_KEY: STAC_MEDIA_TYPE_JSON, }, { @@ -378,7 +366,6 @@ def should_update_root_catalog_with_new_version_collection(subtests: SubTests) - { STAC_REL_KEY: STAC_REL_PARENT, STAC_HREF_KEY: f"../{CATALOG_FILENAME}", - STAC_TITLE_KEY: ROOT_CATALOG_TITLE, STAC_TYPE_KEY: STAC_MEDIA_TYPE_JSON, }, ] @@ -386,13 +373,11 @@ def should_update_root_catalog_with_new_version_collection(subtests: SubTests) - { STAC_REL_KEY: STAC_REL_ROOT, STAC_HREF_KEY: f"../{CATALOG_FILENAME}", - STAC_TITLE_KEY: ROOT_CATALOG_TITLE, STAC_TYPE_KEY: STAC_MEDIA_TYPE_JSON, }, { STAC_REL_KEY: STAC_REL_PARENT, STAC_HREF_KEY: f"./{collection_filename}", - STAC_TITLE_KEY: dataset.title, STAC_TYPE_KEY: STAC_MEDIA_TYPE_JSON, }, ] @@ -475,13 +460,11 @@ def should_not_add_duplicate_child_link_to_root(subtests: SubTests) -> None: { STAC_REL_KEY: STAC_REL_ROOT, STAC_HREF_KEY: f"./{CATALOG_FILENAME}", - STAC_TITLE_KEY: ROOT_CATALOG_TITLE, STAC_TYPE_KEY: STAC_MEDIA_TYPE_JSON, }, { STAC_REL_KEY: STAC_REL_CHILD, STAC_HREF_KEY: f"./{dataset.title}/{catalog_filename}", - STAC_TITLE_KEY: dataset.title, STAC_TYPE_KEY: STAC_MEDIA_TYPE_JSON, }, ] @@ -489,13 +472,11 @@ def should_not_add_duplicate_child_link_to_root(subtests: SubTests) -> None: { STAC_REL_KEY: STAC_REL_ROOT, STAC_HREF_KEY: f"../{CATALOG_FILENAME}", - STAC_TITLE_KEY: ROOT_CATALOG_TITLE, STAC_TYPE_KEY: STAC_MEDIA_TYPE_JSON, }, { STAC_REL_KEY: STAC_REL_PARENT, STAC_HREF_KEY: f"../{CATALOG_FILENAME}", - STAC_TITLE_KEY: ROOT_CATALOG_TITLE, STAC_TYPE_KEY: STAC_MEDIA_TYPE_JSON, }, ] @@ -602,25 +583,21 @@ def should_add_link_to_root_catalog_in_series( { STAC_REL_KEY: STAC_REL_ROOT, STAC_HREF_KEY: f"./{CATALOG_FILENAME}", - STAC_TITLE_KEY: ROOT_CATALOG_TITLE, STAC_TYPE_KEY: STAC_MEDIA_TYPE_JSON, }, { STAC_REL_KEY: STAC_REL_CHILD, STAC_HREF_KEY: f"./{dataset_one.title}/{catalog_filename}", - STAC_TITLE_KEY: dataset_one.title, STAC_TYPE_KEY: STAC_MEDIA_TYPE_JSON, }, { STAC_REL_KEY: STAC_REL_CHILD, STAC_HREF_KEY: f"./{dataset_two.title}/{catalog_filename}", - STAC_TITLE_KEY: dataset_two.title, STAC_TYPE_KEY: STAC_MEDIA_TYPE_JSON, }, { STAC_REL_KEY: STAC_REL_CHILD, STAC_HREF_KEY: f"./{dataset_three.title}/{catalog_filename}", - STAC_TITLE_KEY: dataset_three.title, STAC_TYPE_KEY: STAC_MEDIA_TYPE_JSON, }, ]