From 47a0a8e345671dc2bd1a302ecc403f760635500d Mon Sep 17 00:00:00 2001 From: Osneil Drakes Date: Tue, 10 Sep 2024 11:21:36 +0100 Subject: [PATCH] feat: add collections field to the family data being mapped --- gcf_data_mapper/parsers/family.py | 1 + tests/unit_tests/parsers/family/test_map_family.py | 1 + 2 files changed, 2 insertions(+) diff --git a/gcf_data_mapper/parsers/family.py b/gcf_data_mapper/parsers/family.py index dc1a818..937718e 100644 --- a/gcf_data_mapper/parsers/family.py +++ b/gcf_data_mapper/parsers/family.py @@ -131,6 +131,7 @@ def map_family_data( family_data = { # For now we are hard coding the category as MCF "category": "MCF", + "collections": [], "description": summary, "geographies": geographies, "import_id": import_id, diff --git a/tests/unit_tests/parsers/family/test_map_family.py b/tests/unit_tests/parsers/family/test_map_family.py index a369761..43297f7 100644 --- a/tests/unit_tests/parsers/family/test_map_family.py +++ b/tests/unit_tests/parsers/family/test_map_family.py @@ -9,6 +9,7 @@ def parsed_family_data(): return [ { "category": "MCF", + "collections": [], "description": "The Summary of the Project", "geographies": ["BGD"], "import_id": "GCF.family.FP003.12660",